fix : unseen recursion mistake on empty value for work folder
This commit is contained in:
1 parent
f72c1b9b07
commit
d80bda8468
1 file changed
+2
-3
@@ -56,8 +56,7 @@ class Tools():
|
|||||||
if path is None or path == "":
|
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
|
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 == "":
|
if path is None or path == "":
|
||||||
print("No work directory specified, using default.")
|
raise Exception("No work dir specified, please specify a work dir in .env file.")
|
||||||
path = self.create_work_dir()
|
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def config_exists(self):
|
def config_exists(self):
|
||||||
@@ -216,4 +215,4 @@ for file in os.listdir():
|
|||||||
```
|
```
|
||||||
goodbye!
|
goodbye!
|
||||||
""")
|
""")
|
||||||
print(rt)
|
print(rt)
|
||||||
Reference in new issue
Block a user