Philipp Hörist pushed to branch storage at gajim / gajim


Commits:
34786a1a by Philipp Hörist at 2024-03-25T21:56:34+01:00
fix: Prevent zero division

- - - - -


1 changed file:

- gajim/common/events.py


Changes:

=====================================
gajim/common/events.py
=====================================
@@ -792,6 +792,8 @@ class DBMigrationProgress(ApplicationEvent):
 
     @property
     def value(self) -> str:
+        if self.count == 0:
+            return '{:05.2f}'.format(100)
         return '{:05.2f}'.format(self.progress / self.count * 100)
 
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/34786a1a4491dcd1e1dee1f23a3893c110a6f10b

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/34786a1a4491dcd1e1dee1f23a3893c110a6f10b
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to