fix(aurora): fixed NoneType typerror in auroraset list
All checks were successful
Pylint / Pylint (3.11) (push) Successful in 43s

This commit is contained in:
Seaswimmer 2023-12-28 05:54:09 -05:00
parent 3ac0459532
commit 9736918382
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -1017,7 +1017,7 @@ class Aurora(commands.Cog):
continue
if setting == 'log_channel':
channel = ctx.guild.get_channel(guild_settings[setting])
guild_settings_string += f"**{setting}**: {channel.mention}\n"
guild_settings_string += f"**{setting}**: {channel.mention}\n" if channel else f"**{setting}**: {guild_settings[setting]}\n"
else:
guild_settings_string += f"**{setting}**: {guild_settings[setting]}\n"