Compare commits

..

1 Commits

Author SHA1 Message Date
김성경 6301186288 대시보드 에러처리 변경 2026-04-06 10:52:28 +09:00
1 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,9 @@ async def get_session() -> AsyncGenerator[AsyncSession, None]:
try: try:
yield session yield session
except Exception as e: except Exception as e:
from app.dashboard.exceptions import DashboardException
if isinstance(e, DashboardException):
raise e
import traceback import traceback
await session.rollback() await session.rollback()
logger.error(traceback.format_exc()) logger.error(traceback.format_exc())