Skip to content

Commit

Permalink
fixup! fixup! Handle teams foreign key error
Browse files Browse the repository at this point in the history
  • Loading branch information
evroon committed Feb 26, 2024
1 parent f179ba3 commit c2453ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/bracket/utils/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ def check_foreign_key_violation(expected_violations: set[ForeignKey]) -> Iterato
raise HTTPException(

Check warning on line 79 in backend/bracket/utils/errors.py

View check run for this annotation

Codecov / codecov/patch

backend/bracket/utils/errors.py#L79

Added line #L79 was not covered by tests
status_code=status.HTTP_400_BAD_REQUEST,
detail=foreign_key_violation_error_lookup[constraint],
)
) from exc

0 comments on commit c2453ec

Please sign in to comment.