From bbd9d6372b3897fa27e3e4d85b1ffe536a4e82fc Mon Sep 17 00:00:00 2001 From: James Bourbeau Date: Mon, 24 Jun 2024 17:13:54 -0500 Subject: [PATCH] Make sure output logs directory exists --- src/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.py b/src/main.py index ba7fba5..dccd706 100644 --- a/src/main.py +++ b/src/main.py @@ -1,3 +1,4 @@ +import os from datetime import datetime import click @@ -173,6 +174,7 @@ def main( storage.commit(f"Processed {len(jobs)} chunks") # save logs + os.makedirs("logs", exist_ok=True) log_fname = f"logs/{int(datetime.now().timestamp())}-{serverless_backend}.csv" save_output_log(results, log_fname)