youtube upload 기능 작성 .

This commit is contained in:
HyeongBaeYang committed 2026-02-02 16:42:38 +09:00
1 parent ef203dc14d
commit 8c7893d989
8 files changed
+330 -27

No files matched your search

+14
View File
@@ -288,6 +288,20 @@ def add_exception_handlers(app: FastAPI):
),
)
# SocialException 핸들러 추가
from app.social.exceptions import SocialException
@app.exception_handler(SocialException)
def social_exception_handler(request: Request, exc: SocialException) -> Response:
logger.debug(f"Handled SocialException: {exc.__class__.__name__} - {exc.message}")
return JSONResponse(
status_code=exc.status_code,
content={
"detail": exc.message,
"code": exc.code,
},
)
@app.exception_handler(status.HTTP_500_INTERNAL_SERVER_ERROR)
def internal_server_error_handler(request, exception):
return JSONResponse(