Skip to content

Commit 32bd92f

Browse files
committed
Fix explore() with plugins
1 parent 2fcec29 commit 32bd92f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scapy/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ def layers(self):
314314
except ImportError:
315315
import __builtin__ # noqa: F401
316316
for lay in self.ldict:
317-
doc = eval(lay).__doc__
317+
try:
318+
doc = eval(lay).__doc__
319+
except AttributeError:
320+
continue
318321
result.append((lay, doc.strip().split("\n")[0] if doc else lay))
319322
return result
320323

0 commit comments

Comments
 (0)