diff --git a/utils.py b/utils.py index a43c969..c2dd878 100644 --- a/utils.py +++ b/utils.py @@ -396,7 +396,7 @@ async def update_clan_messages(guild: nextcord.Guild, channel_updates: Sequence[ guild (nextcord.Guild): Guild object that all channels and messages belong to. channel_updates: (Sequence[str]): a sequence of the channels to update. """ - dirs = [dir_name for dir_name in channel_updates if Path.is_dir(f"{MESSAGES_DIR}/{dir_name}")] + dirs = [dir_name for dir_name in channel_updates if Path(f"{MESSAGES_DIR}/{dir_name}").is_dir()] with Session(engine) as session: for dir_name in dirs: