aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2017-01-27 19:03:40 +0200
committerFilipp Lepalaan <filipp@mac.com>2017-01-27 19:03:40 +0200
commit1b02a92d0dbf900a724dbddcdd66ab1fae96439b (patch)
tree052eb4642b29b0468b547d31dd5d103b969d4011
parent620f867a7f67100df5b85d5d857ab7f55d8dc29d (diff)
downloaddjango-wkhtmltopdf-master.tar.gz
django-wkhtmltopdf-master.tar.bz2
django-wkhtmltopdf-master.zip
Fix env testHEADmaster
-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