fix(ranks): Repair setting response tree.

This commit is contained in:
2023-09-10 08:08:28 +03:00
parent 088d0d27f8
commit 69e228d395
2 changed files with 2 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ class LionBot(Bot):
extra={'action': 'BotError', 'with_ctx': True} extra={'action': 'BotError', 'with_ctx': True}
) )
except discord.HTTPException: except discord.HTTPException:
logger.warning( logger.error(
f"Caught an unhandled 'HTTPException' while executing: {cmd_str}", f"Caught an unhandled 'HTTPException' while executing: {cmd_str}",
exc_info=True, exc_info=True,
extra={'action': 'BotError', 'with_ctx': True} extra={'action': 'BotError', 'with_ctx': True}

View File

@@ -757,7 +757,7 @@ class RankCog(LionCog):
lines = [] lines = []
if rank_type_setting in modified: if rank_type_setting in modified:
lines.append(rank_type_setting.update_message) lines.append(rank_type_setting.update_message)
if dm_ranks or rank_channel: if (dm_ranks is not None) or (rank_channel is not None):
if dm_ranks_setting.value: if dm_ranks_setting.value:
if rank_channel_setting.value: if rank_channel_setting.value:
notif_string = t(_p( notif_string = t(_p(