Fixing bug that effectively broke document support in 0.4.0.. how embarassing :(
This fix sponsored by Christophe Drevet. Thank you!
This commit is contained in:
parent
1f973d93f4
commit
2d7a6789be
@ -250,8 +250,8 @@ def process_pdf(proc_state):
|
||||
else:
|
||||
pdf_filename = queued_filename.rsplit('.', 1)[0] + '.pdf'
|
||||
unoconv = where('unoconv')
|
||||
call(executable=unoconv,
|
||||
args=[unoconv, '-v', '-f', 'pdf', queued_filename])
|
||||
Popen(executable=unoconv,
|
||||
args=[unoconv, '-v', '-f', 'pdf', queued_filename]).wait()
|
||||
if not os.path.exists(pdf_filename):
|
||||
_log.debug('unoconv failed to convert file to pdf')
|
||||
raise BadMediaFail()
|
||||
|
Loading…
x
Reference in New Issue
Block a user