← ChoreCode leaderboard · 20260709T195510Z
error_swallowed
1 attempts with this failure reason.
Tasks
where this reason appears| Task | Title | Attempts |
|---|---|---|
| bare-except-chore | Stop swallowing lookup errors | 1 |
Models
affected run configs| Run config | Attempts |
|---|---|
| kimi-k2.6 [none] | 1 |
Attempts
patches and logsbare-except-chore · kimi-k2.6 [none] · rep 0 · hard fail · error_swallowed, forbidden_pattern, hidden_tests_failed · 199→110 tok · $0.0005
solution.patch
diff --git a/src/tiny_store/lookup.py b/src/tiny_store/lookup.py
--- a/src/tiny_store/lookup.py
+++ b/src/tiny_store/lookup.py
@@ -9,5 +9,7 @@
"""
try:
return prices[item]
- except Exception:
+ except KeyError:
+ raise ValueError(f"Unknown item: {item}")
+ except Exception:
return 0
- except Exception:
- return 0
hidden tests (tail)
$ docker run --rm --network none -e UV_OFFLINE=1 -v /private/var/folders/nz/89f4y58s4rd4nzh8m0m3n62c0000gn/T/migrate_327dff6af5de_sd8onmnh/workspace:/workspace -w /workspace chorecode/runner:dev uv run python -m unittest discover -s tests
exit code: 1
--- stdout ---
--- stderr ---
Using CPython 3.13.11 interpreter at: /usr/local/bin/python3
Creating virtual environment at: /tmp/uv-env
Building tiny-store @ file:///workspace
Built tiny-store @ file:///workspace
Installed 1 package in 0.41ms
..F.
======================================================================
FAIL: test_unrelated_errors_are_not_swallowed (test_hidden_errors.HiddenErrorHandlingTests.test_unrelated_errors_are_not_swallowed)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/workspace/tests/test_hidden_errors.py", line 15, in test_unrelated_errors_are_not_swallowed
with self.assertRaises(TypeError):
~~~~~~~~~~~~~~~~~^^^^^^^^^^^
AssertionError: TypeError not raised
----------------------------------------------------------------------
Ran 4 tests in 0.001s
FAILED (failures=1)
visible tests (tail)
$ docker run --rm --network none -e UV_OFFLINE=1 -v /private/var/folders/nz/89f4y58s4rd4nzh8m0m3n62c0000gn/T/migrate_327dff6af5de_sd8onmnh/workspace:/workspace -w /workspace chorecode/runner:dev uv run python -m unittest discover -s tests
exit code: 0
--- stdout ---
--- stderr ---
Using CPython 3.13.11 interpreter at: /usr/local/bin/python3
Creating virtual environment at: /tmp/uv-env
Building tiny-store @ file:///workspace
Built tiny-store @ file:///workspace
Installed 1 package in 0.46ms
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK