##// END OF EJS Templates
hook: drop dedicated catch for 'KeyboardInterrupt'...
Pierre-Yves David -
r25184:819cd397 default
parent child Browse files
Show More
@@ -85,8 +85,6 b' def _pythonhook(ui, repo, name, hname, f'
85 sys.stdout, sys.stderr, sys.stdin = ui.fout, ui.ferr, ui.fin
85 sys.stdout, sys.stderr, sys.stdin = ui.fout, ui.ferr, ui.fin
86
86
87 r = obj(ui=ui, repo=repo, hooktype=name, **args)
87 r = obj(ui=ui, repo=repo, hooktype=name, **args)
88 except KeyboardInterrupt:
89 raise
90 except Exception, exc:
88 except Exception, exc:
91 if isinstance(exc, util.Abort):
89 if isinstance(exc, util.Abort):
92 ui.warn(_('error: %s hook failed: %s\n') %
90 ui.warn(_('error: %s hook failed: %s\n') %
General Comments 0
You need to be logged in to leave comments. Login now