Reformats Code
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
from storage_service.utils.file.validators import image_validator
|
||||
|
||||
from enum import Enum
|
||||
from io import BytesIO
|
||||
from typing import Callable
|
||||
|
||||
from storage_service.utils.file.validators import image_validator
|
||||
|
||||
|
||||
class FileType(Enum):
|
||||
PNG = "png"
|
||||
|
||||
@@ -12,4 +12,4 @@ async def http_exception_handler(request: Request, exc: HTTPException):
|
||||
"status_code": exc.status_code,
|
||||
}
|
||||
},
|
||||
)
|
||||
)
|
||||
|
||||
@@ -17,4 +17,4 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE
|
||||
"status_code": status_code,
|
||||
}
|
||||
},
|
||||
)
|
||||
)
|
||||
|
||||
@@ -3,6 +3,4 @@ from fastapi import HTTPException, status
|
||||
|
||||
class FileNotFoundException(HTTPException):
|
||||
def __init__(self, message: str):
|
||||
super().__init__(
|
||||
status.HTTP_404_NOT_FOUND, detail=message
|
||||
)
|
||||
super().__init__(status.HTTP_404_NOT_FOUND, detail=message)
|
||||
|
||||
Reference in New Issue
Block a user