Compare commits
1 Commits
main
...
feature-da
| Author | SHA1 | Date |
|---|---|---|
|
|
6301186288 |
|
|
@ -130,6 +130,9 @@ async def get_session() -> AsyncGenerator[AsyncSession, None]:
|
|||
try:
|
||||
yield session
|
||||
except Exception as e:
|
||||
from app.dashboard.exceptions import DashboardException
|
||||
if isinstance(e, DashboardException):
|
||||
raise e
|
||||
import traceback
|
||||
await session.rollback()
|
||||
logger.error(traceback.format_exc())
|
||||
|
|
|
|||
Loading…
Reference in New Issue