We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd267a commit bdfb0c7Copy full SHA for bdfb0c7
src/murfey/server/api/__init__.py
@@ -1643,7 +1643,10 @@ async def process_gain(
1643
@router.delete("/sessions/{session_id}")
1644
def remove_session_by_id(session_id: MurfeySessionID, db=murfey_db):
1645
session = db.exec(select(Session).where(Session.id == session_id)).one()
1646
- prom.monitoring_switch.remove(session.visit)
+ try:
1647
+ prom.monitoring_switch.remove(session.visit)
1648
+ except KeyError:
1649
+ pass
1650
rsync_instances = db.exec(
1651
select(RsyncInstance).where(RsyncInstance.session_id == session_id)
1652
).all()
0 commit comments