Compare commits
1 Commits
feature-da
...
main
| Author | SHA1 | Date |
|---|---|---|
|
|
7202376123 |
|
|
@ -130,9 +130,6 @@ 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