From d819847e8a4eb80aa054f59fcc4fd878840ae7c4 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Thu, 9 Oct 2025 00:30:03 -0700 Subject: [PATCH] feat: skip on empty toml --- joj3_config_generator/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/joj3_config_generator/main.py b/joj3_config_generator/main.py index 267221c..a14c2ad 100644 --- a/joj3_config_generator/main.py +++ b/joj3_config_generator/main.py @@ -106,6 +106,9 @@ def convert( for task_toml_path in repo_toml_path.parent.glob("**/*.toml"): if repo_toml_path == task_toml_path: continue + if len(task_toml_path.read_bytes()) == 0: + logger.info(f"Skipping empty task toml file {task_toml_path}") + continue toml_name = task_toml_path.name.removesuffix(".toml") result_json_path = task_toml_path.parent / f"{toml_name}.json" logger.info(