Skip to content

Commit 0c7d5d3

Browse files
fix: Move HTTPException import to top of file for better code organization
1 parent 2ac7580 commit 0c7d5d3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

app/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Main FastAPI application entry point."""
2-
from fastapi import FastAPI
2+
from fastapi import FastAPI, HTTPException
33
from fastapi.exceptions import RequestValidationError
44
from fastapi.middleware.cors import CORSMiddleware
55
from app.core.config import ALLOWED_ORIGINS
@@ -21,8 +21,6 @@
2121
)
2222

2323
# Exception handlers
24-
from fastapi import HTTPException
25-
2624
app.add_exception_handler(RequestValidationError, validation_exception_handler)
2725
app.add_exception_handler(HTTPException, http_exception_handler)
2826

0 commit comments

Comments
 (0)