summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-04 20:22:06 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-04 20:22:06 +0100
commit9792c7f55449a97bbe4dcfa1579e1049fadbcf16 (patch)
tree9989cb9e9cb072f65b8783b2efe0bb944e6e3d3e
parentImprove processCaptcha thread in hook plugins (diff)
downloadpyload-9792c7f55449a97bbe4dcfa1579e1049fadbcf16.tar.xz
[SimpleHoster] Improve checkTrafficLeft routine
-rw-r--r--module/plugins/internal/SimpleHoster.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 4e2b4803b..c87a6160f 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -182,7 +182,7 @@ def secondsToMidnight(gmt=0):
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
__type__ = "hoster"
- __version__ = "0.89"
+ __version__ = "0.90"
__pattern__ = r'^unmatchable$'
@@ -593,6 +593,9 @@ class SimpleHoster(Hoster):
def checkTrafficLeft(self):
+ if not self.account:
+ return True
+
traffic = self.account.getAccountInfo(self.user, True)['trafficleft']
if traffic is None: