Update FilePackPlugin.py

This commit is contained in:
cclauss 2017-07-16 22:39:42 +02:00 committed by GitHub
parent c44cb11800
commit b82cf8d08d
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class UiRequestPlugin(object):
content_type = self.getContentType(file_path)
self.sendHeader(200, content_type=content_type, noscript=kwargs.get("header_noscript", False))
return self.streamFile(file)
except Exception, err:
except Exception as err:
self.log.debug("Error opening archive file: %s" % err)
return self.error404(path)