aboutsummaryrefslogtreecommitdiffstats
path: root/python/baml.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/baml.py')
-rw-r--r--python/baml.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/baml.py b/python/baml.py
index a8923d8b..e6ee117f 100644
--- a/python/baml.py
+++ b/python/baml.py
@@ -25,6 +25,7 @@ def download_messages(em):
continue
if attach.name.endswith("csv"):
p = save_dir / attach.name
+ p.parent.mkdir(exist_ok=True)
if not p.exists():
p.write_bytes(attach.content)