fix unicode errors

Change-Id: I0d824e7c037bb8d479fda371f637ba0f67e226dd
This commit is contained in:
Matthew Thode 2018-04-16 20:12:17 -05:00
parent b6e395fe8e
commit fdbe4c1a1d
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8

View File

@ -88,10 +88,10 @@ def _freeze(requirements, python):
return (version, _parse_freeze(freeze))
except Exception as exc:
if isinstance(exc, subprocess.CalledProcessError):
output.append(exc.output)
output.append(exc.output.decode('utf-8'))
raise Exception(
"Failed to generate freeze: %s %s"
% ('\n'.join(output), exc))
% ('\n'.join(output).decode('utf-8'), exc))
def _combine_freezes(freezes, blacklist=None):