[hook] fix name error in case of error on hook's .event checking
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 07 Apr 2010 09:43:50 +0200
changeset 5162 6340ed9f8caf
parent 5161 a19f22bacedc
child 5163 3079b8345915
[hook] fix name error in case of error on hook's .event checking
server/hook.py
--- 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: