Commit 6fb1090c authored by maruel@chromium.org's avatar maruel@chromium.org

e.stderr may be None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@42505 0039d316-1c4b-4281-b951-d872f2087c98
parent d08cb1e8
......@@ -372,8 +372,10 @@ def _SendChangeSVN(options):
gclient_utils.CheckCall(["svn", "commit", full_path, '--file',
temp_file.name], print_error=False)
except gclient_utils.CheckCallError, e:
raise NoTryServerAccess(' '.join(e.command) + '\nOuput:\n' +
e.stdout + e.stderr)
out = e.stdout
if e.stderr:
out += e.stderr
raise NoTryServerAccess(' '.join(e.command) + '\nOuput:\n' + out)
finally:
temp_file.close()
shutil.rmtree(temp_dir, True)
......
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