Skip to content

Commit

Permalink
Fix stack trace in logs (#5751)
Browse files Browse the repository at this point in the history
  • Loading branch information
tofarr authored Dec 22, 2024
1 parent b1719bb commit b51dd3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openhands/server/session/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ async def _is_session_running_in_cluster(self, sid: str) -> bool:
# Nobody replied in time
return False
finally:
self._session_is_running_flags.pop(sid)
self._session_is_running_flags.pop(sid, None)

async def _has_remote_connections(self, sid: str) -> bool:
"""As the rest of the cluster if they still want this session running. Wait a for a short timeout for a reply"""
Expand All @@ -283,7 +283,7 @@ async def _has_remote_connections(self, sid: str) -> bool:
# Nobody replied in time
return False
finally:
self._has_remote_connections_flags.pop(sid)
self._has_remote_connections_flags.pop(sid, None)

async def start_agent_loop(self, sid: str, session_init_data: SessionInitData):
logger.info(f'start_agent_loop:{sid}')
Expand Down

0 comments on commit b51dd3b

Please sign in to comment.