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

Unified Diff: commit_queue.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 | « clang_format.py ('k') | drover.py » ('j') | git_number.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: commit_queue.py
diff --git a/commit_queue.py b/commit_queue.py
index 7639065f8768659d12ee8824b7aacc59c10d8a4e..514f1cacccbd4f4b8e1d4ad1cbf5e1919f105e6e 100755
--- a/commit_queue.py
+++ b/commit_queue.py
@@ -181,4 +181,8 @@ def main(args=None):
if __name__ == "__main__":
fix_encoding.fix_encoding()
- sys.exit(main())
+ try:
+ sys.exit(main())
+ except KeyboardInterrupt:
+ print 'interrupted'
+ sys.exit(1)
« no previous file with comments | « clang_format.py ('k') | drover.py » ('j') | git_number.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698