summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpyload/Core.py2
-rw-r--r--pyload/webui/middlewares.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyload/Core.py b/pyload/Core.py
index 0cc10df6e..d3e23309a 100755
--- a/pyload/Core.py
+++ b/pyload/Core.py
@@ -538,7 +538,7 @@ class Core(object):
for i in range(3, 50):
try:
close(i)
- except :
+ except Exception:
pass
execl(executable, executable, *sys.argv)
diff --git a/pyload/webui/middlewares.py b/pyload/webui/middlewares.py
index 5f56f81ee..19328f9ef 100644
--- a/pyload/webui/middlewares.py
+++ b/pyload/webui/middlewares.py
@@ -124,7 +124,7 @@ class GzipResponse(object):
if hasattr(app_iter, 'close'):
try:
app_iter.close()
- except :
+ except Exception:
pass
content_length = self.buffer.tell()