Commit d047094e authored by Emmy Vouriot's avatar Emmy Vouriot Committed by Jérome Perrin

change bytes to str WIP

parent 18b72af2
......@@ -215,7 +215,7 @@ class PDFDocument(Image):
if process.returncode:
raise ConversionError(
"Error invoking ghostscript.\noutput:%s\nerror:%s" % (output, error))
return output.strip()
return bytes2str(output).strip()
except OSError as e:
if e.errno != errno.ENOENT:
raise
......
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