six.string_type -> six.binary_type because we're trying to invoke .decode on it.
@@ -423,7 +423,7 @@ class BuildEnvironment(object):
# Attempt to stop unicode errors on build reporting
for key, val in list(self.build.items()):
- if isinstance(val, six.string_types):
+ if isinstance(val, six.binary_type):
self.build[key] = val.decode('utf-8', 'ignore')
try:
