1
0
Fork 0

fix chmod output for pdf

This commit is contained in:
Nick Sweeting 2018-03-14 17:04:04 -07:00
parent 1b130e876b
commit dc9445bc9f

View file

@ -225,6 +225,7 @@ def fetch_pdf(link_dir, link, timeout=TIMEOUT, user_data_dir=CHROME_USER_DATA_DI
if result.returncode:
print(' ', (result.stderr or result.stdout).decode())
raise Exception('Failed to print PDF')
chmod_file('output.pdf', cwd=link_dir)
output = 'output.pdf'
except Exception as e:
end()