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

Unified Diff: apply_issue.py

Issue 955993006: Handle KeyboardInterrupt consistently in python scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: tweek test expectations 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 | « no previous file | chrome-update.py » ('j') | clang_format.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apply_issue.py
diff --git a/apply_issue.py b/apply_issue.py
index 8bcb3b2e55307f8817cb29be28bb94574bcb9f71..2b7b334f51eb6f4bd4683341bb07824f2e412c78 100755
--- a/apply_issue.py
+++ b/apply_issue.py
@@ -262,4 +262,8 @@ def main():
if __name__ == "__main__":
fix_encoding.fix_encoding()
- sys.exit(main())
+ try:
+ sys.exit(main())
+ except KeyboardInterrupt:
+ sys.stderr.write('interrupted\n')
+ sys.exit(1)
« no previous file with comments | « no previous file | chrome-update.py » ('j') | clang_format.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698