upload.py has a raw_input() that keeps on throwing crap, try to trap it as much as possible.
Otherwise I get useless stack traces and the user too.
R=dpranke@chromium.org
BUG=
TEST=
Review URL: http://codereview.chromium.org/6794020
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@80338 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index 1887cbb..d24bf73 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -984,6 +984,8 @@
try:
issue, patchset = upload.RealMain(['upload'] + upload_args + args)
+ except KeyboardInterrupt:
+ sys.exit(1)
except:
# If we got an exception after the user typed a description for their
# change, back up the description before re-raising.