diff --git a/app/main.py b/app/main.py index 001c691..e7f3dce 100644 --- a/app/main.py +++ b/app/main.py @@ -33,9 +33,7 @@ async def convert( ): format_lower = format.lower() if format_lower not in ["epub", "mobi"]: - raise HTTPException( - status_code=status.HTTP_400_BAD_REQUEST, detail="Wrong format!" - ) + raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST) temp_uuid = uuid.uuid1() @@ -70,9 +68,7 @@ async def convert( except FileNotFoundError: pass - raise HTTPException( - status_code=status.HTTP_400_BAD_REQUEST, detail="Can't convert!" - ) + raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST) async def result_iterator() -> AsyncIterator[bytes]: try: