From 625be1490bee7e8dd44af720eb64864799c06487 Mon Sep 17 00:00:00 2001 From: Stefan Reisich Date: Wed, 23 Sep 2015 18:37:27 +0200 Subject: [FIX] AttributeError: x object has no attribute 'user' --- module/plugins/internal/Hoster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/internal') diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py index f610023f4..b853f2815 100644 --- a/module/plugins/internal/Hoster.py +++ b/module/plugins/internal/Hoster.py @@ -192,10 +192,10 @@ class Hoster(Plugin): self.account = self.pyload.accountManager.getAccountPlugin(self.__name__) if self.account: - if not self.account.user: #@TODO: Move to `Account` in 0.4.10 + if not hasattr(self.account, 'user'): #@TODO: Move to `Account` in 0.4.10 self.account.user = self.account.select()[0] - if not self.account.logged: + if not hasattr(self.account, 'logged'): self.account = False -- cgit v1.2.3