From f69b947cfbdc36cd0987f87b4730681bc7619fe5 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 9 Apr 2017 17:37:00 -0500 Subject: [PATCH] Correct region retrieving --- cogs/overwatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/overwatch.py b/cogs/overwatch.py index e17ff3e..63608f5 100644 --- a/cogs/overwatch.py +++ b/cogs/overwatch.py @@ -69,7 +69,7 @@ class Overwatch: await ctx.send("I couldn't connect to overwatch at the moment!") return - region = [x for x in data.keys() if data[x] is not None][0] + region = [x for x in data.keys() if data[x] is not None and x in ['us', 'any', 'kr', 'eu']][0] stats = data[region]['heroes']['stats']['quickplay'].get(hero) if stats is None: