server/hook.py
changeset 5162 6340ed9f8caf
parent 5160 27d4cab5db03
child 5201 2b4267157f85
--- a/server/hook.py	Tue Apr 06 20:10:12 2010 +0200
+++ b/server/hook.py	Wed Apr 07 09:43:50 2010 +0200
@@ -202,7 +202,7 @@
             for event in cls.events:
                 if event not in ALL_HOOKS:
                     raise Exception('bad event %s on %s.%s' % (
-                        event, obj.__module__, obj.__name__))
+                        event, cls.__module__, cls.__name__))
         except AttributeError:
             raise
         except TypeError: