Merge pull request #124 from yosida95/except-stmt
Use except Exception as e clause for Python 3 compatibilitypull/123/head
commit
a66f1285ba
|
@ -196,7 +196,7 @@ class WebApp(object):
|
|||
try:
|
||||
convert(item.file, self.outfp, tmppath, pagenos=pagenos, codec=self.codec,
|
||||
maxpages=self.MAXPAGES, maxfilesize=self.MAXFILESIZE, html=html)
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
self.put('<p>Sorry, an error has occurred: %s' % q(repr(e)))
|
||||
self.logger.error('convert: %r: path=%r: %s' % (e, traceback.format_exc()))
|
||||
finally:
|
||||
|
|
Loading…
Reference in New Issue