Index: git_number.py |
diff --git a/git_number.py b/git_number.py |
index 6997f51b3d0ffd6a21383949315ff7dbdcd6109d..f4776e10c7e29a8134c1dfec8774b5b4733e14c4 100755 |
--- a/git_number.py |
+++ b/git_number.py |
@@ -277,7 +277,12 @@ def main(): # pragma: no cover |
return 0 |
except KeyboardInterrupt: |
M-A Ruel
2015/02/26 00:57:39
It's already handled there, worth removing
Sam Clegg
2015/02/26 17:29:21
Done.
|
return 1 |
+ return 0 |
if __name__ == '__main__': # pragma: no cover |
- sys.exit(main()) |
+ try: |
+ sys.exit(main()) |
+ except KeyboardInterrupt: |
+ print 'interrupted' |
+ sys.exit(1) |