diff options
Diffstat (limited to 'src/leap/bitmask/hooks.py')
-rw-r--r-- | src/leap/bitmask/hooks.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/bitmask/hooks.py b/src/leap/bitmask/hooks.py index 7d9825e2..79edf6c6 100644 --- a/src/leap/bitmask/hooks.py +++ b/src/leap/bitmask/hooks.py @@ -54,8 +54,9 @@ class HookableService(Service): getattr(listener, 'hook_' + name)(**kw) except AttributeError as exc: raise RuntimeError( - "Tried to notify a hook, but the listener service class %s " - "has not defined the proper method %s" % + "Tried to notify a hook, but the listener " + "service class %s has not defined the " + "proper method %s" % (listener.__class__, 'hook_' + name)) if not hasattr(self, 'event_listeners'): |