diff options
author | Filipp Lepalaan <filipp@mac.com> | 2017-01-27 19:03:40 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2017-01-27 19:03:40 +0200 |
commit | 1b02a92d0dbf900a724dbddcdd66ab1fae96439b (patch) | |
tree | 052eb4642b29b0468b547d31dd5d103b969d4011 /wkhtmltopdf | |
parent | 620f867a7f67100df5b85d5d857ab7f55d8dc29d (diff) | |
download | django-wkhtmltopdf-master.tar.gz django-wkhtmltopdf-master.tar.bz2 django-wkhtmltopdf-master.zip |
Diffstat (limited to 'wkhtmltopdf')
-rw-r--r-- | wkhtmltopdf/process.py | 2 |
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 |