Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghostopheles committed May 14, 2024
1 parent cec7c55 commit 46da242
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ def __init__(self, command_prefix, **options):
try:
self.load_extension(f"cogs.{cog}")
logger.info(f"{cog} cog loaded!")
except Exception as exc:
logger.error(f"Error loading cog '{cog}'")
logger.error(exc)
except Exception:
logger.error(f"Error loading cog '{cog}'", exc_info=True)

async def on_ready(self):
"""This `async` function runs once when the bot is connected to Discord and ready to execute commands."""
Expand Down

0 comments on commit 46da242

Please sign in to comment.