changeset 25184:819cd397e306

hook: drop dedicated catch for 'KeyboardInterrupt' This is no longer under 'Exception' in Python 2.6.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 18 May 2015 15:40:23 -0500
parents 0d0ed375fbdf
children bf6b476f3b36
files mercurial/hook.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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') %