misc: don't use capture_output as it requires python 3.7 (#44787)

This commit is contained in:
Frédéric Péters 2020-07-03 17:46:13 +02:00
parent b92ee201e2
commit e4b17b5059
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ try:
lo_output = subprocess.run(
['libreoffice', '--headless', '--convert-to', 'pdf',
infile.name, '--outdir', temp_dir],
check=True, capture_output=True)
check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if os.path.exists(infile.name + '.pdf'):
break
# sometimes libreoffice fails and sometimes it's ok