Commit e7ceaade authored by ilevy@chromium.org's avatar ilevy@chromium.org

Fix uninitialized variable error in presubmit_support

Remove 'out' variable reference.  If subprocess.communicate()
throws an exception, out cannot contain data.

BUG=236073
TBR=cmp

Review URL: https://chromiumcodereview.appspot.com/14386022

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@196904 0039d316-1c4b-4281-b951-d872f2087c98
parent 94e40369
...@@ -1299,7 +1299,7 @@ def CallCommand(cmd_data): ...@@ -1299,7 +1299,7 @@ def CallCommand(cmd_data):
return cmd_data.message('%s failed\n%s' % (cmd_data.name, out)) return cmd_data.message('%s failed\n%s' % (cmd_data.name, out))
except OSError as e: except OSError as e:
return cmd_data.message( return cmd_data.message(
'%s exec failure\n %s\n%s' % (cmd_data.name, e, out)) '%s exec failure\n %s' % (cmd_data.name, e))
def Main(argv): def Main(argv):
......
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