From fdbe4c1a1d6fa1cf6aaee53891099fd6a42399d1 Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Mon, 16 Apr 2018 20:12:17 -0500 Subject: [PATCH] fix unicode errors Change-Id: I0d824e7c037bb8d479fda371f637ba0f67e226dd --- openstack_requirements/cmds/generate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack_requirements/cmds/generate.py b/openstack_requirements/cmds/generate.py index 4a60c9cafa..9bd50f7092 100644 --- a/openstack_requirements/cmds/generate.py +++ b/openstack_requirements/cmds/generate.py @@ -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):