Changed check to = empty string
This commit is contained in:
parent
89ac5f092c
commit
2d1a9945b5
|
@ -40,7 +40,7 @@ class Overwatch:
|
||||||
await self.bot.say("Searching profile information....")
|
await self.bot.say("Searching profile information....")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if hero:
|
if hero = "":
|
||||||
result = urllib.request.urlopen(base_url + "{}/stats/general".format(bt))
|
result = urllib.request.urlopen(base_url + "{}/stats/general".format(bt))
|
||||||
data = json.loads(result.read().decode('utf-8'))
|
data = json.loads(result.read().decode('utf-8'))
|
||||||
fmt = "\n".join("{}: {}".format(i, r) for i, r in data['game_stats'].items() if i in check_g_stats)
|
fmt = "\n".join("{}: {}".format(i, r) for i, r in data['game_stats'].items() if i in check_g_stats)
|
||||||
|
|
Loading…
Reference in a new issue