Skip to content

Commit

Permalink
Fix workspaces unload
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Dec 6, 2024
1 parent 867be63 commit d145729
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hypha/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,8 @@ async def unload(self, context=None):
self.validate_context(context, permission=UserPermission.admin)
ws = context["ws"]
if not await self._redis.hexists("workspaces", ws):
raise KeyError(f"Workspace {ws} has already been unloaded.")
logger.warning(f"Workspace {ws} has already been unloaded.")
return
winfo = await self.load_workspace_info(ws)
# list all the clients in the workspace and send a meesage to delete them
client_keys = await self._list_client_keys(winfo.id)
Expand Down

0 comments on commit d145729

Please sign in to comment.