diff options
author | Pedro Algarvio <pedro@algarvio.me> | 2012-02-13 14:19:54 +0100 |
---|---|---|
committer | Pedro Algarvio <pedro@algarvio.me> | 2012-02-13 14:19:54 +0100 |
commit | 31970754997d545f71135dbf474d276deb3b4698 (patch) | |
tree | de1cd978b8650315b4ffb22c1a8beee024d174a8 /module/plugins | |
parent | catch server errors correctly (diff) | |
download | pyload-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.py | 2 |
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): |