scarletcafe / jishaku

A debugging and testing cog for discord.py rewrite bots.
https://jishaku.readthedocs.io/en/latest/
MIT License
543 stars 182 forks source link

Fix unbound `result` variable in `SlimChannelConverter` #232

Closed clari7744 closed 7 months ago

clari7744 commented 7 months ago

result was moved inside an if statement in SlimChannelConverter, causing it to be unbound if ctx.guild is None

Rationale

Bugfix, that's all

Summary of changes made

Set result to None before the first if statement

Checklist

scarletcafe commented 7 months ago

regression introduced by #221