diff -r 1f0f84660dea -r 810ca383da9c mercurial/hook.py --- 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))