added logging

This commit is contained in:
phixxy 2024-01-25 02:43:46 -08:00
parent c03393c818
commit 45f35f6736

View file

@ -22,7 +22,7 @@ class PokemonGame(commands.Cog):
if not os.path.exists(self.data_dir): if not os.path.exists(self.data_dir):
os.mkdir(self.data_dir) os.mkdir(self.data_dir)
except: except:
print("PokemonGame failed to make directories") self.bot.logger.exception("PokemonGame failed to make directories")
async def get_json(self, url): async def get_json(self, url):
async with self.bot.http_session.get(url) as resp: async with self.bot.http_session.get(url) as resp: