minor: ruff formatter
All changes are either: - Correcting tabs - Adding/removing line breaks - Adding trailing commas
This commit is contained in:
parent
b2e5dd2ebb
commit
c689ac1e10
91 changed files with 1710 additions and 689 deletions
|
|
@ -4,6 +4,7 @@ Exceptions related to the contact module
|
|||
Exports:
|
||||
- ContactNotFoundException: Takes an optional contact ID int
|
||||
"""
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from fastapi import HTTPException, status
|
||||
|
|
@ -11,7 +12,11 @@ from fastapi import HTTPException, status
|
|||
|
||||
class ContactNotFoundException(HTTPException):
|
||||
def __init__(self, contact_id: Optional[int] = None) -> None:
|
||||
detail = "Contact not found" if contact_id is None else f"Contact with ID '{contact_id}' was not found."
|
||||
detail = (
|
||||
"Contact not found"
|
||||
if contact_id is None
|
||||
else f"Contact with ID '{contact_id}' was not found."
|
||||
)
|
||||
super().__init__(
|
||||
status_code=status.HTTP_404_NOT_FOUND,
|
||||
detail=detail,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue