Skip to content
Snippets Groups Projects
Commit dcd0db3e authored by X_Cli's avatar X_Cli Committed by Pierre Lalet
Browse files

base_classes.py: dispatch_hook: conf variable is undefined in the global scope (#228)

Fix `Raw` and `conf` undefined
parent 8a438b3e
No related branches found
No related tags found
No related merge requests found
...@@ -216,9 +216,9 @@ class Packet_metaclass(type): ...@@ -216,9 +216,9 @@ class Packet_metaclass(type):
try: try:
cls = cls.dispatch_hook(*args, **kargs) cls = cls.dispatch_hook(*args, **kargs)
except: except:
if conf.debug_dissector: if config.conf.debug_dissector:
raise raise
cls = Raw cls = config.conf.raw_layer
i = cls.__new__(cls, cls.__name__, cls.__bases__, cls.__dict__) i = cls.__new__(cls, cls.__name__, cls.__bases__, cls.__dict__)
i.__init__(*args, **kargs) i.__init__(*args, **kargs)
return i return i
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment