From d80bda84685c01e0bdb426bfd738aac41286e343 Mon Sep 17 00:00:00 2001 From: "martin.legrand" Date: Thu, 11 Sep 2025 23:44:06 +0200 Subject: [PATCH] fix : unseen recursion mistake on empty value for work folder --- sources/tools/tools.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sources/tools/tools.py b/sources/tools/tools.py index d0648df..a8c13e3 100644 --- a/sources/tools/tools.py +++ b/sources/tools/tools.py @@ -56,8 +56,7 @@ class Tools(): if path is None or path == "": path = self.config['MAIN']['work_dir'] if 'MAIN' in self.config and 'work_dir' in self.config['MAIN'] else None if path is None or path == "": - print("No work directory specified, using default.") - path = self.create_work_dir() + raise Exception("No work dir specified, please specify a work dir in .env file.") return path def config_exists(self): @@ -216,4 +215,4 @@ for file in os.listdir(): ``` goodbye! """) - print(rt) \ No newline at end of file + print(rt)