fix(sp41): trailing newlines + correct docstring ref in DuplicateClaimError
This commit is contained in:
@@ -44,7 +44,7 @@ class InvalidStateError(Exception):
|
|||||||
|
|
||||||
|
|
||||||
class DuplicateClaimError(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).
|
is re-submitted within the 30-day dedup window (SP41).
|
||||||
|
|
||||||
Mirrors the other 409-class exceptions: callers catch it at the API
|
Mirrors the other 409-class exceptions: callers catch it at the API
|
||||||
@@ -63,4 +63,4 @@ class DuplicateClaimError(Exception):
|
|||||||
super().__init__(
|
super().__init__(
|
||||||
f"claim_id {claim_id!r} was already submitted at "
|
f"claim_id {claim_id!r} was already submitted at "
|
||||||
f"{original_submission_at.isoformat()}; within 30-day window"
|
f"{original_submission_at.isoformat()}; within 30-day window"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -62,4 +62,4 @@ def check_duplicate(
|
|||||||
)
|
)
|
||||||
).first()
|
).first()
|
||||||
if row is not None:
|
if row is not None:
|
||||||
raise DuplicateClaimError(claim_id, row.submitted_at)
|
raise DuplicateClaimError(claim_id, row.submitted_at)
|
||||||
|
|||||||
Reference in New Issue
Block a user