diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-02 18:46:44 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-02 18:46:44 +0200 |
commit | cff2a9b85332bd18ec1748ba18d0e607899d5079 (patch) | |
tree | 1035fb7bdc16f17f4edb79d2abfa8a1b4dc61347 /module/plugins | |
parent | Merge pull request #1448 from GammaC0de/patch-1 (diff) | |
download | pyload-cff2a9b85332bd18ec1748ba18d0e607899d5079.tar.xz |
Fix https://github.com/pyload/pyload/issues/1449
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/accounts/PremiumizeMe.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/accounts/PremiumizeMe.py b/module/plugins/accounts/PremiumizeMe.py index 01ac36ab6..abd9fe14c 100644 --- a/module/plugins/accounts/PremiumizeMe.py +++ b/module/plugins/accounts/PremiumizeMe.py @@ -9,7 +9,7 @@ from module.plugins.Account import Account class PremiumizeMe(Account): __name__ = "PremiumizeMe" __type__ = "account" - __version__ = "0.14" + __version__ = "0.15" __description__ = """Premiumize.me account plugin""" __license__ = "GPLv3" @@ -18,7 +18,8 @@ class PremiumizeMe(Account): def getAccountRequest(self, user=None): req = super(PremiumizeMe, self).getAccountRequest(user) - req.http.c.setopt(pycurl.CURLOPT_SSL_CIPHER_LIST, "TLSv1") + if req: + req.http.c.setopt(pycurl.CURLOPT_SSL_CIPHER_LIST, "TLSv1") return req |