Skip to content

Commit

Permalink
base_classes.py: dispatch_hook: conf variable is undefined in the glo…
Browse files Browse the repository at this point in the history
…bal scope (#228)

Fix `Raw` and `conf` undefined
  • Loading branch information
X-Cli authored and p-l- committed Jul 26, 2016
1 parent 8a438b3 commit dcd0db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scapy/base_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ def __call__(cls, *args, **kargs):
try:
cls = cls.dispatch_hook(*args, **kargs)
except:
if conf.debug_dissector:
if config.conf.debug_dissector:
raise
cls = Raw
cls = config.conf.raw_layer
i = cls.__new__(cls, cls.__name__, cls.__bases__, cls.__dict__)
i.__init__(*args, **kargs)
return i
Expand Down

0 comments on commit dcd0db3

Please sign in to comment.