We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fcec29 commit 32bd92fCopy full SHA for 32bd92f
1 file changed
scapy/config.py
@@ -314,7 +314,10 @@ def layers(self):
314
except ImportError:
315
import __builtin__ # noqa: F401
316
for lay in self.ldict:
317
- doc = eval(lay).__doc__
+ try:
318
+ doc = eval(lay).__doc__
319
+ except AttributeError:
320
+ continue
321
result.append((lay, doc.strip().split("\n")[0] if doc else lay))
322
return result
323
0 commit comments