Skip to content
Snippets Groups Projects
Commit 9440512f authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot
Browse files

Add forgotten variable declaration in except.

parent 6f1bad3e
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ class GlobalEventsDispatcher(object):
if event_name in self.handlers:
try:
self.handlers[event_name].remove((priority, handler))
except ValueError:
except ValueError as error:
log.warning('''Function (%s) with priority "%s" never registered
as handler of event "%s". Couldn\'t remove. Error: %s'''
%(handler, priority, event_name, error))
......
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