mirror of
https://github.com/ianarawjo/ChainForge.git
synced 2025-03-14 08:16:37 +00:00
Fix bug when creating dirs for custom providers
This commit is contained in:
parent
0af7bdaedd
commit
965b96e451
@ -554,7 +554,7 @@ def initCustomProvider():
|
||||
if not os.path.isdir(provider_scripts_dir):
|
||||
# Create the directory
|
||||
try:
|
||||
os.mkdir(provider_scripts_dir)
|
||||
os.makedirs(provider_scripts_dir, exist_ok=True)
|
||||
except Exception as e:
|
||||
return jsonify({'error': f"Error creating a new directory 'provider_scripts' at filepath {provider_scripts_dir}: {str(e)}"})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user