diff options
author | TodsDeath <todsdeath@gmx-topmail.de> | 2015-07-29 11:10:04 +0200 |
---|---|---|
committer | TodsDeath <todsdeath@gmx-topmail.de> | 2015-07-29 11:10:04 +0200 |
commit | fd7b164840d2bcf1af86e7eece46ada9e91e2f41 (patch) | |
tree | da41db9c9d5688780f18a72564962f4f8dc5ca98 /module | |
parent | Update Account.py (diff) | |
download | pyload-fd7b164840d2bcf1af86e7eece46ada9e91e2f41.tar.xz |
Update Account.py
better readability than conditional expression
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/Account.py | 2 |
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): |