We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb7833 commit 5841df3Copy full SHA for 5841df3
babyagi.py
@@ -1601,6 +1601,8 @@ def write_file(file_path: str, content: str):
1601
os.makedirs(os.path.dirname(file_path), exist_ok=True)
1602
with open(file_path, "w") as file:
1603
file.write(content)
1604
+ except IsADirectoryError:
1605
+ return
1606
except Exception as e:
1607
raise e
1608
0 commit comments