Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: git_cache.py

Issue 955993006: Handle KeyboardInterrupt consistently in python scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « git_auto_svn.py ('k') | git_cherry_pick_upload.py » ('j') | git_number.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cache.py
diff --git a/git_cache.py b/git_cache.py
index 7cc19bdb24e8db0fa8c049b0ebc345e0744c48a8..df9cd3dd7a960e5ba6e38663b04fc31582b8ccb6 100755
--- a/git_cache.py
+++ b/git_cache.py
@@ -697,4 +697,8 @@ def main(argv):
if __name__ == '__main__':
- sys.exit(main(sys.argv[1:]))
+ try:
+ sys.exit(main(sys.argv[1:]))
+ except KeyboardInterrupt:
+ print('interrupted')
+ sys.exit(1)
« no previous file with comments | « git_auto_svn.py ('k') | git_cherry_pick_upload.py » ('j') | git_number.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698