diff options
author | Stefan Reisich <nafex@gmx.net> | 2015-09-23 18:37:27 +0200 |
---|---|---|
committer | Stefan Reisich <nafex@gmx.net> | 2015-09-23 18:37:27 +0200 |
commit | 625be1490bee7e8dd44af720eb64864799c06487 (patch) | |
tree | 89c3e1db01e27c5903d15f5d30a83670e1898e11 /module/plugins/internal/Hoster.py | |
parent | Merge pull request #1 from pyload/stable (diff) | |
download | pyload-625be1490bee7e8dd44af720eb64864799c06487.tar.xz |
[FIX] AttributeError: x object has no attribute 'user'
Diffstat (limited to 'module/plugins/internal/Hoster.py')
-rw-r--r-- | module/plugins/internal/Hoster.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |