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
experimental/szager/collated-output
maruel@chromium.org 15 years ago
parent d08cb1e848
commit 6fb1090c8e

@ -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)

Loading…
Cancel
Save