We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d667a33 commit 438b9b7Copy full SHA for 438b9b7
pdfkit/pdfkit.py
@@ -177,7 +177,7 @@ def to_pdf(self, path=None):
177
'Check whhtmltopdf output without \'quiet\' '
178
'option' % ' '.join(args))
179
return True
180
- except IOError as e:
+ except (IOError, OSError) as e:
181
raise IOError('Command failed: %s\n'
182
'Check whhtmltopdf output without \'quiet\' option\n'
183
'%s ' %(' '.join(args)),e)
0 commit comments