phen-cogs
phen-cogs copied to clipboard
[Baron] Massleave error about guild icon
Traceback (most recent call last):
File "/home/glas/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 229, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/hdd/data/lenabot/cogs/CogManager/cogs/baron/baron.py", line 522, in baron_leave_members
await self.leave_guilds(
File "/mnt/hdd/data/lenabot/cogs/CogManager/cogs/baron/baron.py", line 632, in leave_guilds
await self.baron_log("mass_leave", guilds=unwl_guilds, author=ctx.author)
File "/mnt/hdd/data/lenabot/cogs/CogManager/cogs/baron/baron.py", line 655, in baron_log
if guild.icon is None:
^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'icon'