summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Pedro Algarvio <pedro@algarvio.me> 2012-02-13 14:19:54 +0100
committerGravatar Pedro Algarvio <pedro@algarvio.me> 2012-02-13 14:19:54 +0100
commit31970754997d545f71135dbf474d276deb3b4698 (patch)
treede1cd978b8650315b4ffb22c1a8beee024d174a8 /module/plugins
parentcatch server errors correctly (diff)
downloadpyload-31970754997d545f71135dbf474d276deb3b4698.tar.xz
If the account is not yet aware of `trafficleft`, force an update to the account info.
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/Account.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py
index d30f6920c..704299827 100644
--- a/module/plugins/Account.py
+++ b/module/plugins/Account.py
@@ -242,6 +242,8 @@ class Account(Base, AccountInfo):
return parseFileSize(string) / 1024
def formatTrafficleft(self):
+ if self.trafficleft is None:
+ self.getAccountInfo(force=True)
return formatSize(self.trafficleft*1024)
def wrongPassword(self):