[ChatChart] Test logging for size < 0, part 2

This commit is contained in:
aikaterna
2021-09-27 11:31:20 -07:00
committed by GitHub
parent 1310c45190
commit cc1d8227d4

View File

@@ -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: