summaryrefslogtreecommitdiffstats
path: root/pyload/manager/AccountManager.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/manager/AccountManager.py
parentFix previous merge (diff)
downloadpyload-004a80bfaad38f9400e8aebcb8f980353a232295.tar.xz
PEP-8, Python Zen, refactor and reduce code (thx FedeG)
Diffstat (limited to 'pyload/manager/AccountManager.py')
-rw-r--r--pyload/manager/AccountManager.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/manager/AccountManager.py b/pyload/manager/AccountManager.py
index 4e9e36cee..9dc98770c 100644
--- a/pyload/manager/AccountManager.py
+++ b/pyload/manager/AccountManager.py
@@ -11,7 +11,7 @@ from pyload.utils import chmod, lock
ACC_VERSION = 1
-class AccountManager:
+class AccountManager(object):
"""manages all accounts"""
#----------------------------------------------------------------------
@@ -47,7 +47,7 @@ class AccountManager:
return self.plugins[plugin]
else:
raise
- except:
+ except Exception:
return None
@@ -100,7 +100,7 @@ class AccountManager:
try:
option = line[1:].split()
self.accounts[plugin][name]['options'][option[0]] = [] if len(option) < 2 else ([option[1]] if len(option) < 3 else option[1:])
- except:
+ except Exception:
pass
elif ":" in line: