diff --git a/extensions/albums.py b/extensions/albums.py index d2f3cf4..7cb4663 100644 --- a/extensions/albums.py +++ b/extensions/albums.py @@ -10,9 +10,9 @@ from modules.security import User, get_current_active_user from bson.objectid import ObjectId from bson.errors import InvalidId -from fastapi import HTTPException, Security +from fastapi import Security from fastapi.responses import UJSONResponse, Response -from starlette.status import HTTP_204_NO_CONTENT, HTTP_404_NOT_FOUND, HTTP_406_NOT_ACCEPTABLE, HTTP_409_CONFLICT +from starlette.status import HTTP_204_NO_CONTENT album_create_responses = { 406: AlbumIncorrectError("name", "error").openapi,