From cc1d8227d49a70c99f2f82f43a5ab9a757e07d7b Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Mon, 27 Sep 2021 11:31:20 -0700 Subject: [PATCH] [ChatChart] Test logging for size < 0, part 2 --- chatchart/chatchart.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chatchart/chatchart.py b/chatchart/chatchart.py index c77cec6..c605d8c 100644 --- a/chatchart/chatchart.py +++ b/chatchart/chatchart.py @@ -88,7 +88,10 @@ class Chatchart(commands.Cog): for s in sizes: if s < 0: index = sizes.index(s) - log.info(f"Size {s} is not valid, at position {top[index]}") + log.info(f"Size {s} is not valid, at position {top[index]}") + + if others < 0: + log.info(f"Others is less than zero: {others}") labels = ["{} {:g}%".format(x[0], x[1]) for x in top] if len(top) >= 20: