loop.py: Fix nintendo not using application/json content type sometimes.
@@ -46,7 +46,8 @@ class Loop(commands.Cog):
async def update_netinfo(self):
async with self.bot.session.get('https://www.nintendo.co.jp/netinfo/en_US/status.json?callback=getJSON', timeout=45) as r:
if r.status == 200:
- j = await r.json()
+ # Nintendo likes to fuck up the json content type sometimes.
+ j = await r.json(content_type=None)
else:
self.netinfo_embed.description = "Failure when checking the Network Maintenance Information page."
logger.warning("Status %s while trying to update netinfo.", r.status)
