summaryrefslogtreecommitdiffstats
path: root/pyload/config/Setup.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 23:53:07 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 23:53:07 +0100
commit004a80bfaad38f9400e8aebcb8f980353a232295 (patch)
tree1e786d2d14a3040767aac237982544b74a9567cb /pyload/config/Setup.py
parentFix previous merge (diff)
downloadpyload-004a80bfaad38f9400e8aebcb8f980353a232295.tar.xz
PEP-8, Python Zen, refactor and reduce code (thx FedeG)
Diffstat (limited to 'pyload/config/Setup.py')
-rw-r--r--pyload/config/Setup.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/config/Setup.py b/pyload/config/Setup.py
index 1fbdc3e51..7f159c01a 100644
--- a/pyload/config/Setup.py
+++ b/pyload/config/Setup.py
@@ -13,7 +13,7 @@ from subprocess import PIPE, call
from pyload.utils import get_console_encoding, versiontuple
-class SetupAssistant:
+class SetupAssistant(object):
""" pyLoads initial setup configuration assistant """
def __init__(self, path, config):
@@ -251,7 +251,7 @@ class SetupAssistant:
jinja = False
else:
jinja = True
- except:
+ except Exception:
jinja = False
jinja = self.print_dep("jinja2", jinja)
@@ -451,7 +451,7 @@ class SetupAssistant:
try:
__import__(module)
return True
- except:
+ except Exception:
return False
@@ -460,7 +460,7 @@ class SetupAssistant:
try:
call(command, stdout=pipe, stderr=pipe)
return True
- except:
+ except Exception:
return False