Skip to content
This repository was archived by the owner on Feb 13, 2022. It is now read-only.

Commit c930727

Browse files
committed
Don't try to load internal class vars when loading channels
1 parent d02fdb3 commit c930727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async def check_channels(self) -> None:
9898

9999
all_channels_ids = [channel.id for channel in self.get_all_channels()]
100100
for name, channel_id in vars(constants.Channels).items():
101-
if name in ("section", "subsection"):
101+
if name in ("section", "subsection") or name.startswith("__"):
102102
continue
103103
if channel_id not in all_channels_ids:
104104
logger.error(f'Channel "{name}" with ID {channel_id} missing')

0 commit comments

Comments
 (0)