Add forgotten variable declaration in except.
This commit is contained in:
parent
6f1bad3eb5
commit
9440512f2b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue