summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/XFSAccount.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-08 03:08:17 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-08 03:08:17 +0200
commit035d8c554c9e24206f9dc6f76e17fbe9e4c3607f (patch)
tree3b173d98512f33233d4aeb2906493d3abeea2369 /module/plugins/internal/XFSAccount.py
parentMerge pull request #1957 from GammaC0de/patch-3 (diff)
downloadpyload-035d8c554c9e24206f9dc6f76e17fbe9e4c3607f.tar.xz
Fixpack (4)
Diffstat (limited to 'module/plugins/internal/XFSAccount.py')
-rw-r--r--module/plugins/internal/XFSAccount.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/plugins/internal/XFSAccount.py b/module/plugins/internal/XFSAccount.py
index 8b0aadf12..4c3f35c2b 100644
--- a/module/plugins/internal/XFSAccount.py
+++ b/module/plugins/internal/XFSAccount.py
@@ -106,11 +106,14 @@ class XFSAccount(Account):
trafficleft = -1
if validuntil is None:
validuntil = -1
+
else:
if 'U' in traffic:
unit = traffic['U']
+
elif isinstance(self.TRAFFIC_LEFT_UNIT, basestring):
unit = self.TRAFFIC_LEFT_UNIT
+
else:
unit = ""