From f53c92cce91abd92bf6c3fb9139c7fc75811aa8c Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 24 Nov 2003 09:40:27 +0000 Subject: [PATCH] Fix for bug #847950. --- plugins/Gameknot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Gameknot.py b/plugins/Gameknot.py index 1de9313ca..44f0f62ce 100644 --- a/plugins/Gameknot.py +++ b/plugins/Gameknot.py @@ -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