From 004a80bfaad38f9400e8aebcb8f980353a232295 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 1 Dec 2014 23:53:07 +0100 Subject: PEP-8, Python Zen, refactor and reduce code (thx FedeG) --- pyload/config/Setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pyload/config/Setup.py') 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 -- cgit v1.2.3