Removed unreachable defensive guards and added test for strptime ValueError path.
Format / ruff (push) Successful in 10s
Lint / ruff (push) Failing after 10s
Unit Tests / pytest (push) Successful in 18s
Type Check / mypy (push) Failing after 18s

This commit is contained in:
2026-02-16 19:55:28 -05:00
parent b8e7663bf4
commit 04208b0649
2 changed files with 8 additions and 4 deletions
@@ -366,8 +366,6 @@ async def _evaluate_count(
"RETURNING value",
(counter_name, delta, delta),
)
if row is None:
raise PlaceholderError("Internal error: counter update failed")
return str(row["value"])
else:
try:
@@ -381,8 +379,6 @@ async def _evaluate_count(
"RETURNING value",
(counter_name, value),
)
if row is None:
raise PlaceholderError("Internal error: counter update failed")
return str(row["value"])