From b081bc8672c2068701b0a0f184db40a9c583251e Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sun, 12 Mar 2017 20:01:20 +0100 Subject: [PATCH] Fix #157 --- cps/web.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cps/web.py b/cps/web.py index 0e19dec0..5d932ec9 100755 --- a/cps/web.py +++ b/cps/web.py @@ -51,19 +51,18 @@ try: from urllib.parse import quote from imp import reload from past.builtins import xrange -except ImportError as e: +except ImportError: from urllib import quote try: from flask_login import __version__ as flask_loginVersion -except ImportError, e: +except ImportError: from flask_login.__about__ import __version__ as flask_loginVersion try: from wand.image import Image - use_generic_pdf_cover = False -except ImportError as e: +except ImportError: use_generic_pdf_cover = True from cgi import escape