Skip to content

Commit d10b482

Browse files
authored
Add ValueError to except in L2Socket.close() (#4607)
1 parent 32a002f commit d10b482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/arch/linux/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def close(self):
276276
try:
277277
if self.promisc and getattr(self, "ins", None):
278278
set_promisc(self.ins, self.iface, 0)
279-
except (AttributeError, OSError):
279+
except (AttributeError, OSError, ValueError):
280280
pass
281281
SuperSocket.close(self)
282282

0 commit comments

Comments
 (0)