From e8eb9970a6358fd3b531e4deb1b1833bb2c2cbab Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Thu, 5 Nov 2015 10:54:35 +0000 Subject: [PATCH] Last try before I revert all this. --- tools/buildbot/upload_symbols.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/buildbot/upload_symbols.py b/tools/buildbot/upload_symbols.py index 3c914acf..8b8e4ed1 100644 --- a/tools/buildbot/upload_symbols.py +++ b/tools/buildbot/upload_symbols.py @@ -59,7 +59,7 @@ for line in lines: proc = subprocess.Popen(argv, stdout=subprocess.PIPE, stderr=devnull, cwd=path, universal_newlines=True) procout, procerr = proc.communicate() if proc.returncode: - raise RuntimeError('Failed to execute \'' + ' '.join(argv) + '\' = ' + proc.returncode) + raise RuntimeError('Failed to execute \'' + ' '.join(argv) + '\' = ' + str(proc.returncode)) return procout.strip() try: @@ -71,7 +71,8 @@ for line in lines: url = runCommand(['git', 'ls-remote', '--get-url', 'origin']) rev = runCommand(['git', 'log', '--pretty=format:%H', '-n', '1']) - except (OSError, RuntimeError): + except (OSError, RuntimeError) as e: + sys.stderr.write(str(e) + '\n') continue roots[root] = (url, rev)