Index: git_upstream_diff.py |
diff --git a/git_upstream_diff.py b/git_upstream_diff.py |
index 9d9db95fd5d64bb1703f15dd38aa6c9270565370..a603e934c0d6f05602b8382031034c7c0a529e6e 100755 |
--- a/git_upstream_diff.py |
+++ b/git_upstream_diff.py |
@@ -39,7 +39,12 @@ def main(args): |
cmd += extra_args |
subprocess2.check_call(cmd) |
M-A Ruel
2015/02/26 00:57:39
return subprocess2.check_call(cmd)
Sam Clegg
2015/02/26 17:29:21
Done.
|
+ return 0 |
if __name__ == '__main__': |
- sys.exit(main(sys.argv[1:])) |
+ try: |
+ sys.exit(main(sys.argv[1:])) |
+ except KeyboardInterrupt: |
+ print 'interrupted' |
+ sys.exit(1) |