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

Unified Diff: roll_dep.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: roll_dep.py
diff --git a/roll_dep.py b/roll_dep.py
index 5e9c47874dce9c0743baf057f8d1fbe19be6283a..fb6a3f850911ba059fd77358dfc001f60192e544 100755
--- a/roll_dep.py
+++ b/roll_dep.py
@@ -398,4 +398,8 @@ def main(argv):
return update_deps(deps_file, dep_path, dep_name, git_rev, comment)
if __name__ == '__main__':
- sys.exit(main(sys.argv[1:]))
+ try:
+ sys.exit(main(sys.argv[1:]))
+ except KeyboardInterrupt:
+ print 'interrupted'
+ sys.exit(1)
« git_upstream_diff.py ('K') | « pylint.py ('k') | upload_to_google_storage.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698