Commit 7633e473 authored by maruel@chromium.org's avatar maruel@chromium.org

Even if HTTPError subclasses URLError, it doesn't have the member reason.

That's so pythonic. Use str() instead.

TBR=bradnelson
TEST=none
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@60211 0039d316-1c4b-4281-b951-d872f2087c98
parent 58c19387
...@@ -1334,7 +1334,7 @@ def main(argv): ...@@ -1334,7 +1334,7 @@ def main(argv):
raise raise
print >> sys.stderr, ( print >> sys.stderr, (
'AppEngine is misbehaving and returned HTTP %d, again. Keep faith ' 'AppEngine is misbehaving and returned HTTP %d, again. Keep faith '
'and retry or visit go/isgaeup.\n%s') % (e.code, e.reason) 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e))
return 1 return 1
......
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