1
0
Fork 0
mirror of synced 2024-06-10 14:44:32 +12:00

Ensured the dict's key and values were used

This commit is contained in:
Phxntxm 2016-10-28 22:15:48 -05:00
parent b28d6ff4b8
commit 981948c2d6

View file

@ -90,7 +90,7 @@ class Overwatch:
banner = await images.create_banner(user, "Overwatch", output_data)
await self.bot.upload(banner)
except (FileNotFoundError, discord.Forbidden):
fmt = "\n".join("{}: {}".format(k, r) for k, r in output_data)
fmt = "\n".join("{}: {}".format(k, r) for k, r in output_data.items())
await self.bot.say("Overwatch stats for {}: ```py\n{}```".format(user.name, fmt))
@ow.command(pass_context=True, name="add")