Skip to content

Commit da51c35

Browse files
Update baselines/Genie/genie.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 91db558 commit da51c35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

baselines/Genie/genie.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ async def process_chunk(content: str):
134134

135135
# Save results
136136
output_dir = os.path.dirname(args.output_file)
137-
if output_dir and not os.path.exists(output_dir):
138-
os.makedirs(output_dir)
137+
if output_dir:
138+
os.makedirs(output_dir, exist_ok=True)
139139

140140
with open(args.output_file, "w", encoding="utf-8") as f:
141141
json.dump(results, f, indent=4, ensure_ascii=False)

0 commit comments

Comments
 (0)