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

Unified Diff: my_reviews.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
Index: my_reviews.py
diff --git a/my_reviews.py b/my_reviews.py
index a55485fe3a125b25b6fa6bb12964ffc26a644554..2630ec92d821284f20183d4a512e2e2972ede469 100755
--- a/my_reviews.py
+++ b/my_reviews.py
@@ -374,4 +374,8 @@ def main():
if __name__ == '__main__':
- sys.exit(main())
+ try:
+ sys.exit(main())
+ except KeyboardInterrupt:
+ print 'interrupted'
+ sys.exit(1)
« git_upstream_diff.py ('K') | « my_activity.py ('k') | presubmit_support.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698