mercurial/hook.py
changeset 7280 810ca383da9c
parent 6762 f67d1468ac50
child 7416 196b05a548d0
--- a/mercurial/hook.py	Tue Oct 28 19:07:14 2008 +0100
+++ b/mercurial/hook.py	Tue Oct 28 19:25:26 2008 +0100
@@ -39,7 +39,7 @@
         try:
             for p in funcname.split('.')[1:]:
                 obj = getattr(obj, p)
-        except AttributeError, err:
+        except AttributeError:
             raise util.Abort(_('%s hook is invalid '
                                '("%s" is not defined)') %
                              (hname, funcname))