[Bug Fix] Fix FileExistsError when using Embedchain in multithreading setting (#1056)
This commit is contained in:
@@ -39,9 +39,7 @@ class Client:
|
||||
:return: user id
|
||||
:rtype: str
|
||||
"""
|
||||
if not os.path.exists(CONFIG_DIR):
|
||||
os.makedirs(CONFIG_DIR)
|
||||
|
||||
os.makedirs(CONFIG_DIR, exist_ok=True)
|
||||
if os.path.exists(CONFIG_FILE):
|
||||
with open(CONFIG_FILE, "r") as f:
|
||||
data = json.load(f)
|
||||
|
||||
Reference in New Issue
Block a user