diff options
Diffstat (limited to 'module/Progress.py')
-rw-r--r-- | module/Progress.py | 5 |
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 |