hook: drop dedicated catch for 'KeyboardInterrupt'
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 18 May 2015 15:40:23 -0500
changeset 25184 819cd397e306
parent 25183 0d0ed375fbdf
child 25185 bf6b476f3b36
hook: drop dedicated catch for 'KeyboardInterrupt' This is no longer under 'Exception' in Python 2.6.
mercurial/hook.py
--- a/mercurial/hook.py	Mon May 18 15:38:24 2015 -0500
+++ b/mercurial/hook.py	Mon May 18 15:40:23 2015 -0500
@@ -85,8 +85,6 @@
         sys.stdout, sys.stderr, sys.stdin = ui.fout, ui.ferr, ui.fin
 
         r = obj(ui=ui, repo=repo, hooktype=name, **args)
-    except KeyboardInterrupt:
-        raise
     except Exception, exc:
         if isinstance(exc, util.Abort):
             ui.warn(_('error: %s hook failed: %s\n') %