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

change bytes to str WIP

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