[Bug Fix] Fix FileExistsError when using Embedchain in multithreading setting (#1056)
This commit is contained in:
@@ -39,9 +39,7 @@ class AnonymousTelemetry:
|
||||
posthog_logger.disabled = True
|
||||
|
||||
def _get_user_id(self):
|
||||
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