summaryrefslogtreecommitdiffstats
path: root/module/Progress.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-10 21:45:09 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-10 21:45:09 +0200
commitd0c21a999ba8ddf0c1956415a27f215baa2f727d (patch)
tree07feeb37a12e95b45b91f5e1faaea19d1b5da613 /module/Progress.py
parentshow queue in webif (diff)
downloadpyload-d0c21a999ba8ddf0c1956415a27f215baa2f727d.tar.xz
more documentation, some fixes
Diffstat (limited to 'module/Progress.py')
-rw-r--r--module/Progress.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/Progress.py b/module/Progress.py
index e12786da8..1ce4903a4 100644
--- a/module/Progress.py
+++ b/module/Progress.py
@@ -34,4 +34,7 @@ class Progress:
self.notify()
def getPercent(self):
- return self.value
+ try:
+ return int(self.value)
+ except:
+ return 0