Skip to content

Commit 2676819

Browse files
DavyMorganCopilot
andauthored
Update SKILL.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0e12f29 commit 2676819

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

SKILL.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ def evaluate(program_path: str) -> dict:
101101
module = importlib.util.module_from_spec(spec)
102102
try:
103103
spec.loader.exec_module(module)
104-
except Exception as e:
105-
return {"combined_score": 0.0, "error": str(e)}
104+
except Exception:
105+
# On load failure, return a numeric-only metrics dict.
106+
# In a real evaluator, log the exception or store it in artifacts, not metrics.
107+
return {"combined_score": 0.0}
106108

107109
# Define test cases
108110
test_cases = [

0 commit comments

Comments
 (0)