summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):