diff options
author | Joseph <powderflask@gmail.com> | 2015-11-26 12:39:31 -0800 |
---|---|---|
committer | Joseph <powderflask@gmail.com> | 2015-11-26 12:39:31 -0800 |
commit | 8e678c6d3b7421f62e109973c169a91f6ddb9e9b (patch) | |
tree | 7b3816bbf6c91906577518f8bfa52b033ad49502 | |
parent | 2e8ea75aa5b69351b79c5fc7bf0a61fe95749cb7 (diff) | |
download | django-wkhtmltopdf-8e678c6d3b7421f62e109973c169a91f6ddb9e9b.tar.gz django-wkhtmltopdf-8e678c6d3b7421f62e109973c169a91f6ddb9e9b.tar.bz2 django-wkhtmltopdf-8e678c6d3b7421f62e109973c169a91f6ddb9e9b.zip |
Update utils.py
-rw-r--r-- | wkhtmltopdf/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wkhtmltopdf/utils.py b/wkhtmltopdf/utils.py index f9d7ac1..772be9b 100644 --- a/wkhtmltopdf/utils.py +++ b/wkhtmltopdf/utils.py @@ -94,10 +94,11 @@ def wkhtmltopdf(pages, output=None, **kwargs): list(pages), [output])) ck_kwargs = {'env': env} + # Handling of fileno() attr. based on https://github.com/GrahamDumpleton/mod_wsgi/issues/85 try: i = sys.stderr.fileno() ck_kwargs['stderr'] = sys.stderr - except AttributeError: + except AttributeError, IOError: # can't call fileno() on mod_wsgi stderr object pass |