From 85bb56de5db81cb2c38d1dc950376ee6cd497027 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Mon, 23 Oct 2006 18:30:04 +0000 Subject: [PATCH] * Desert comes always last. No, I am not touching those. --- pisi/ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/ui.py b/pisi/ui.py index ba701011..4b43e50a 100644 --- a/pisi/ui.py +++ b/pisi/ui.py @@ -28,7 +28,7 @@ class UI(object): self.totalsize = totalsize try: self.percent = (existsize * 100) / totalsize - except: + except ArithmeticError: self.percent = 0 def update(self, size): @@ -36,7 +36,7 @@ class UI(object): return 100 try: self.percent = (size * 100) / self.totalsize - except: + except ArithmeticError: self.percent = 0 return self.percent