Skip to content

Commit 44e4121

Browse files
cosmin-ionutguedou
authored andcommitted
Fixed issue #3567
1 parent 3b6ec7f commit 44e4121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/arch/linux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def __init__(self,
494494
if filter is not None:
495495
try:
496496
attach_filter(self.ins, filter, self.iface)
497-
except ImportError as ex:
497+
except (ImportError, Scapy_Exception) as ex:
498498
log_runtime.error("Cannot set filter: %s", ex)
499499
if self.promisc:
500500
set_promisc(self.ins, self.iface)

0 commit comments

Comments
 (0)