Skip to content

Commit

Permalink
I assume this is a cache_size issue?
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary committed Nov 21, 2023
1 parent c179a7d commit f404ac8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion discordbot/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ async def single_card_text(self: 'MtgContext', c: Card, f: Callable, show_legali
return

not_pd = configuration.get_list('not_pd')
if str(self.channel.id) in not_pd:
if not self.channel:
pass # Not sure how we got here, but it happened

Check warning on line 299 in discordbot/command.py

View check run for this annotation

Codecov / codecov/patch

discordbot/command.py#L299

Added line #L299 was not covered by tests
elif str(self.channel.id) in not_pd:
show_legality = False
elif not isinstance(self.channel, (DM, DMGroup)) and str(self.channel.guild.id) in not_pd:
show_legality = False
Expand Down

0 comments on commit f404ac8

Please sign in to comment.