mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-15 18:25:18 +02:00
chore: linting
This commit is contained in:
parent
b9a66cb417
commit
ca9bbee06d
41 changed files with 314 additions and 244 deletions
|
|
@ -97,10 +97,12 @@ async def revert_agent_action(
|
|||
action=action,
|
||||
requester_user_id=str(user.id) if user is not None else None,
|
||||
)
|
||||
except Exception:
|
||||
except Exception as err:
|
||||
logger.exception("Revert dispatch raised for action_id=%s", action_id)
|
||||
await session.rollback()
|
||||
raise HTTPException(status_code=500, detail="Internal error during revert.")
|
||||
raise HTTPException(
|
||||
status_code=500, detail="Internal error during revert."
|
||||
) from err
|
||||
|
||||
if outcome.status == "ok":
|
||||
await session.commit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue