Commit 58733288 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix workaround for ErrorExit().

r123775 contained copy-paste left-over that caused the code to throw a NameError
instead of a HTTPError.

R=petermayo@chromium.org
BUG=
TEST=


Review URL: http://codereview.chromium.org/9536014

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@124184 0039d316-1c4b-4281-b951-d872f2087c98
parent a01fd324
......@@ -320,8 +320,7 @@ class Rietveld(object):
m = re.search(r'(50\d) Server Error', msg)
if m:
# Fake an HTTPError exception. Cheezy. :(
raise urllib2.HTTPError(
request_path, m.group(1), e.args[0], None, None)
raise urllib2.HTTPError(request_path, m.group(1), msg, None, None)
old_error_exit(msg)
upload.ErrorExit = trap_http_500
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment