Skip to content

Commit

Permalink
dev: handle null context
Browse files Browse the repository at this point in the history
  • Loading branch information
laggron42 committed Feb 18, 2025
1 parent 1d32fcf commit c674c07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ballsdex/core/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ def get_environment(self, ctx: commands.Context) -> dict:
env = {
"bot": self.bot,
"ctx": ctx,
"channel": ctx.channel,
"author": ctx.author,
"guild": ctx.guild,
"message": ctx.message,
"channel": ctx.channel if ctx else None,
"author": ctx.author if ctx else None,
"guild": ctx.guild if ctx else None,
"message": ctx.message if ctx else None,
"asyncio": asyncio,
"aiohttp": aiohttp,
"discord": discord,
Expand Down

0 comments on commit c674c07

Please sign in to comment.