From 95b4abd8bbc405b85513547ec41fa6add9f254b2 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 1 Aug 2023 22:39:46 -0400 Subject: [PATCH] fix: added a cog_load function to run create_table --- musicdownloader/musicdownloader.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index 5890ca7..57f55cd 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -20,8 +20,6 @@ class MusicDownloader(commands.Cog): def create_table(self): data_path = str(data_manager.cog_data_path()) + f"{os.sep}MusicDownloader" - if not os.path.isdir(data_path): - os.makedirs(data_path) db_path = os.path.join(data_path, "database.db") if not os.path.isfile(db_path): con = sqlite3.connect(db_path)