mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Fix for bug #847950.
This commit is contained in:
parent
2cdd2392ff
commit
f53c92cce9
@ -111,7 +111,7 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp, plugins.Configurable):
|
|||||||
wp = 100. * w / (w + l + d) # win percent
|
wp = 100. * w / (w + l + d) # win percent
|
||||||
lp = 100. * l / (w + l + d) # loss percent
|
lp = 100. * l / (w + l + d) # loss percent
|
||||||
dp = 100. * d / (w + l + d) # draw percent
|
dp = 100. * d / (w + l + d) # draw percent
|
||||||
except ValueError:
|
except (ValueError, ZeroDivisionError):
|
||||||
w = w
|
w = w
|
||||||
wp = 0.
|
wp = 0.
|
||||||
l = l
|
l = l
|
||||||
|
Loading…
Reference in New Issue
Block a user