aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/process.py
diff options
context:
space:
mode:
Diffstat (limited to 'wkhtmltopdf/process.py')
-rw-r--r--wkhtmltopdf/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wkhtmltopdf/process.py b/wkhtmltopdf/process.py
index d12fa4e..c6e8c8c 100644
--- a/wkhtmltopdf/process.py
+++ b/wkhtmltopdf/process.py
@@ -58,7 +58,7 @@ def check_output(*popenargs, **kwargs):
if 'stdout' in kwargs:
raise ValueError('stdout argument not allowed, it will be overridden.')
- if 'env' in kwargs:
+ if kwargs.get('env'):
ignore_404 = kwargs['env'].pop('ignore_404', False)
else:
ignore_404 = False