diff options
author | 2015-08-03 23:58:29 +0200 | |
---|---|---|
committer | 2015-08-03 23:58:29 +0200 | |
commit | 2fccfd7d93cbd34fff027b8bf6ed6d0ff6c87ce1 (patch) | |
tree | c97931554842b0c921671b4c7f122f0a3596576b /module/plugins/internal/SimpleHoster.py | |
parent | Merge pull request #1670 from GammaC0de/patch-2 (diff) | |
parent | Update Plugin.py (diff) | |
download | pyload-2fccfd7d93cbd34fff027b8bf6ed6d0ff6c87ce1.tar.xz |
Merge pull request #1685 from GammaC0de/patch-2
Object has no attribute 'COOKIES'
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index e27f9a231..e2cc21ed8 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -23,7 +23,7 @@ statusMap = dict((v, k) for k, v in _statusMap.items()) class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "1.77" + __version__ = "1.78" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -221,7 +221,7 @@ class SimpleHoster(Hoster): self.req.setOption("timeout", 120) - if isinstance(self.COOKIES, list): + if hasattr(self, 'COOKIES') and isinstance(self.COOKIES, list): set_cookies(self.req.cj, self.COOKIES) if self.LINK_PATTERN: |