From d7e278ebf34aa127a37ebfb05dff15467f087fdc Mon Sep 17 00:00:00 2001 From: Iuri Guilherme <2027447+iuriguilherme@users.noreply.github.com> Date: Tue, 16 Nov 2021 23:49:42 -0300 Subject: [PATCH] We shall not divide by zero --- simple_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple_commands.py b/simple_commands.py index ee6bf85..4c8979f 100644 --- a/simple_commands.py +++ b/simple_commands.py @@ -126,7 +126,7 @@ def stats(bot, update): ) n = us.first_places - m = round((us.first_places / us.games_played) * 100) + m = round((us.first_places / us.games_played) * 100) if games_played else 0 stats_text.append( _("{number} first place ({percent}%)", "{number} first places ({percent}%)",