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

Unified Diff: gcl.py

Issue 6794020: upload.py has a raw_input() that keeps on throwing crap, try to trap it as much as possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 9 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 | git_cl.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcl.py
diff --git a/gcl.py b/gcl.py
index 6136d1c5a96ee6f198d37ed1606621294b854b90..125854d0cbd55e25388c7797ea3a79779c1d4b62 100755
--- a/gcl.py
+++ b/gcl.py
@@ -906,7 +906,10 @@ def CMDupload(change_info, args):
# each file and concatenate them before passing it to upload.py.
if change_info.patch is None:
change_info.patch = GenerateDiff(change_info.GetFileNames())
- issue, patchset = upload.RealMain(upload_arg, change_info.patch)
+ try:
+ issue, patchset = upload.RealMain(upload_arg, change_info.patch)
+ except KeyboardInterrupt:
+ sys.exit(1)
if issue and patchset:
change_info.issue = int(issue)
change_info.patchset = int(patchset)
« no previous file with comments | « no previous file | git_cl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698