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

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

Powered by Google App Engine
This is Rietveld 408576698