feat(system): fix(ci): make json_handler.log_operation non-fatal in copy_template — prevents CI failure when spawn log dir missing

Co-Authored-By: @devpulse <devpulse@aipass>
This commit is contained in:
AIOSAI
2026-04-25 21:16:43 -07:00
co-authored by @devpulse
parent 8fbc144657
commit 84018413a7
2 changed files with 4 additions and 2 deletions
+4 -1
View File
@@ -76,7 +76,10 @@ def copy_template(template_dir, target_dir, replacements):
shutil.copy2(item, dest)
copied.append(f"{dest_rel} (binary)")
json_handler.log_operation("template_copied", data={"target": str(target_dir)})
try:
json_handler.log_operation("template_copied", data={"target": str(target_dir)})
except Exception as exc:
logger.info("json_handler.log_operation failed (non-fatal): %s", exc)
return copied, skipped