From d0c21a999ba8ddf0c1956415a27f215baa2f727d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 10 Jul 2011 21:45:09 +0200 Subject: more documentation, some fixes --- module/Progress.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'module/Progress.py') 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 -- cgit v1.2.3