From 1b02a92d0dbf900a724dbddcdd66ab1fae96439b Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 27 Jan 2017 19:03:40 +0200 Subject: Fix env test --- wkhtmltopdf/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3