diff options
-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): |