Skip to content

Commit 616243c

Browse files
authored
Fix the exception handler HTTPException type error (#146)
1 parent 8251c66 commit 616243c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/app/common/exception/exception_handler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
import json
44

55
from fastapi import FastAPI, Request
6-
from fastapi.exceptions import RequestValidationError, HTTPException
6+
from fastapi.exceptions import RequestValidationError
77
from pydantic import ValidationError
8+
from starlette.exceptions import HTTPException
89
from starlette.responses import JSONResponse
910
from uvicorn.protocols.http.h11_impl import STATUS_PHRASES
1011

0 commit comments

Comments
 (0)