From 2fed3b3ffa3a614f71b7c73d213fc874806d656b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 19 Oct 2015 09:38:46 +0200 Subject: Fix https://github.com/pyload/pyload/issues/2056 --- module/plugins/internal/Account.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins/internal/Account.py') diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py index 469e27cfa..f883eb25c 100644 --- a/module/plugins/internal/Account.py +++ b/module/plugins/internal/Account.py @@ -12,7 +12,7 @@ from module.plugins.internal.utils import compare_time, isiterable, lock, parse_ class Account(Plugin): __name__ = "Account" __type__ = "account" - __version__ = "0.63" + __version__ = "0.64" __status__ = "testing" __description__ = """Base account plugin""" @@ -451,10 +451,10 @@ class Account(Plugin): ########################################################################### - def parse_traffic(self, size, unit="byte"): #@NOTE: Returns kilobytes in 0.4.9 + def parse_traffic(self, size, unit=None): #@NOTE: Returns kilobytes in 0.4.9 self.log_debug("Size: %s" % size, - "Unit: %s" % (unit if unit is not "byte" else "N/D")) - return parse_size(size, unit) / 1024 #@TODO: Remove `/ 1024` in 0.4.10 + "Unit: %s" % (unit or "N/D")) + return parse_size(size, unit or "byte") / 1024 #@TODO: Remove `/ 1024` in 0.4.10 def fail_login(self, msg=_("Login handshake has failed")): -- cgit v1.2.3