Skip to content

Commit

Permalink
Add ValueError to except in L2Socket.close() (#4607)
Browse files Browse the repository at this point in the history
  • Loading branch information
polybassa authored Dec 10, 2024
1 parent 32a002f commit d10b482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scapy/arch/linux/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def close(self):
try:
if self.promisc and getattr(self, "ins", None):
set_promisc(self.ins, self.iface, 0)
except (AttributeError, OSError):
except (AttributeError, OSError, ValueError):
pass
SuperSocket.close(self)

Expand Down

0 comments on commit d10b482

Please sign in to comment.