fix(sp41): trailing newlines + correct docstring ref in DuplicateClaimError

This commit is contained in:
Nora
2026-07-07 22:28:05 -06:00
parent 53df3f0684
commit bd5530539d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class InvalidStateError(Exception):
class DuplicateClaimError(Exception):
"""Raised by ``CycloneStore.check_submission_duplicate`` when a claim_id
"""Raised by ``cyclone.store.submission_dedup.check_duplicate`` when a claim_id
is re-submitted within the 30-day dedup window (SP41).
Mirrors the other 409-class exceptions: callers catch it at the API
@@ -63,4 +63,4 @@ class DuplicateClaimError(Exception):
super().__init__(
f"claim_id {claim_id!r} was already submitted at "
f"{original_submission_at.isoformat()}; within 30-day window"
)
)
@@ -62,4 +62,4 @@ def check_duplicate(
)
).first()
if row is not None:
raise DuplicateClaimError(claim_id, row.submitted_at)
raise DuplicateClaimError(claim_id, row.submitted_at)