diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-09-23 19:25:16 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-09-23 19:25:16 +0200 |
commit | 9a16506897a92ca35970259878ffe1ceb88df7b4 (patch) | |
tree | 89c3e1db01e27c5903d15f5d30a83670e1898e11 | |
parent | Merge pull request #1843 from chaosblog/patch-1 (diff) | |
parent | [FIX] AttributeError: x object has no attribute 'user' (diff) | |
download | pyload-9a16506897a92ca35970259878ffe1ceb88df7b4.tar.xz |
Merge pull request #1846 from nafex/stable
[FIX] AttributeError: x object has no attribute 'user' Issue #1833
-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 |