From fe0a7093881ab5cd76ffd81cddb7cac50abf251a Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 16 May 2024 09:46:37 -0400 Subject: [PATCH] [17] Fixes #1367 Error when trying to symlink the logs folder --- VERSION | 2 +- modules/logs.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index c7298f06..ae6c2b7b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.1-develop16 +2.0.1-develop17 diff --git a/modules/logs.py b/modules/logs.py index 62d4be68..e548cb8a 100644 --- a/modules/logs.py +++ b/modules/logs.py @@ -51,7 +51,8 @@ class MyLogger: self.secrets = [] self.spacing = 0 self.playlists_log = os.path.join(self.playlists_dir, PLAYLISTS_LOG) - os.makedirs(self.log_dir, exist_ok=True) + if not os.path.exists(self.log_dir): + os.makedirs(self.log_dir, exist_ok=True) self._logger = logging.getLogger(None if self.log_requests else self.logger_name) self._logger.setLevel(logging.DEBUG)