mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +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
|
||||
lp = 100. * l / (w + l + d) # loss percent
|
||||
dp = 100. * d / (w + l + d) # draw percent
|
||||
except ValueError:
|
||||
except (ValueError, ZeroDivisionError):
|
||||
w = w
|
||||
wp = 0.
|
||||
l = l
|
||||
|
Loading…
Reference in New Issue
Block a user