From 8560ff226c2fbc0ee238b6a58077927a862f48a1 Mon Sep 17 00:00:00 2001 From: Nitzo Date: Sat, 9 Apr 2016 04:47:54 +0300 Subject: [Account] Don't grab info if account is not valid --- module/plugins/internal/Account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module') diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py index 84f6ead1e..7ebb2111d 100644 --- a/module/plugins/internal/Account.py +++ b/module/plugins/internal/Account.py @@ -12,7 +12,7 @@ from module.plugins.internal.misc import Periodical, compare_time, decode, isite class Account(Plugin): __name__ = "Account" __type__ = "account" - __version__ = "0.72" + __version__ = "0.73" __status__ = "stable" __description__ = """Base account plugin""" @@ -203,7 +203,7 @@ class Account(Plugin): refresh = False self.reset() - if refresh: + if refresh and self.info['login']['valid']: self.log_info(_("Grabbing account info for user `%s`...") % self.user) self.info = self._grab_info() -- cgit v1.2.3