From 5e8a7272dae05014ae3fb623082324f277e34e87 Mon Sep 17 00:00:00 2001 From: oddluck <39967334+oddluck@users.noreply.github.com> Date: Sun, 29 Mar 2020 00:40:47 +0000 Subject: [PATCH] Corona: ensure --top10 results are countries --- Corona/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Corona/plugin.py b/Corona/plugin.py index 87d8798..e607b05 100644 --- a/Corona/plugin.py +++ b/Corona/plugin.py @@ -588,7 +588,7 @@ class Corona(callbacks.Plugin): for country in self.data: if n > 10: break - if self.data[country]['rank'] == "#{0}".format(n): + if self.data[country]['country'] and self.data[country]['rank'] == "#{0}".format(n): reply += " {0}: \x1F{1}\x1F (\x0307{2}\x03/\x0304{3}\x03),".format( self.data[country]['rank'], self.data[country]['name'],