Skip to content

Commit 7d4328c

Browse files
Update baselines/SELF-QA/self-qa.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent f79895d commit 7d4328c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

baselines/SELF-QA/self-qa.py

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

172172
# Save results
173173
output_dir = os.path.dirname(args.output_file)
174-
if output_dir and not os.path.exists(output_dir):
175-
os.makedirs(output_dir)
174+
if output_dir:
175+
os.makedirs(output_dir, exist_ok=True)
176176

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

0 commit comments

Comments
 (0)