summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/Account.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-18 00:29:55 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-18 00:29:55 +0200
commitbb5a115533711fd8bb87f53cb32ff7342137208d (patch)
tree476600f9896fae029880e4049eb4c5e6021b202d /pyload/plugin/Account.py
parentPEP-8, Python Zen, refactor and reduce code (part 6 in master module/common) (diff)
downloadpyload-bb5a115533711fd8bb87f53cb32ff7342137208d.tar.xz
Spare code cosmetics (5)
Diffstat (limited to 'pyload/plugin/Account.py')
-rw-r--r--pyload/plugin/Account.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyload/plugin/Account.py b/pyload/plugin/Account.py
index bc13c0497..c46eae5e3 100644
--- a/pyload/plugin/Account.py
+++ b/pyload/plugin/Account.py
@@ -231,7 +231,8 @@ class Account(Base):
""" returns an valid account name and data"""
usable = []
for user, data in self.accounts.iteritems():
- if not data['valid']: continue
+ if not data['valid']:
+ continue
if "time" in data['options'] and data['options']['time']:
time_data = ""
@@ -253,7 +254,8 @@ class Account(Base):
usable.append((user, data))
- if not usable: return None, None
+ if not usable:
+ return None, None
return choice(usable)