From d9914529ca1f87e018cdfaed7f65855e1aed7406 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Wed, 22 May 2024 17:30:01 -0400 Subject: [PATCH] Fix Path().is_dir() usage. --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: