summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar TodsDeath <todsdeath@gmx-topmail.de> 2015-07-29 11:10:04 +0200
committerGravatar TodsDeath <todsdeath@gmx-topmail.de> 2015-07-29 11:10:04 +0200
commitfd7b164840d2bcf1af86e7eece46ada9e91e2f41 (patch)
treeda41db9c9d5688780f18a72564962f4f8dc5ca98 /module
parentUpdate Account.py (diff)
downloadpyload-fd7b164840d2bcf1af86e7eece46ada9e91e2f41.tar.xz
Update Account.py
better readability than conditional expression
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/Account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index 55ef6c5f9..d6e4ce8ab 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -232,7 +232,7 @@ class Account(Plugin):
return False
info = self.get_info(user, reload)
- return info['data']['premium'] if info and 'data' in info and 'premium' in info['data'] else False
+ return info.get('data', {}).get('premium', False)
def _parse_info(self, user):