Commit 6bdaa4e8 authored by Emmy Vouriot's avatar Emmy Vouriot Committed by Arnaud Fontaine

change bytes to str WIP

parent fc6f3b9d
...@@ -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