Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit b068f41

Browse files
committed
Don't delete active workspace
Signed-off-by: Juan Antonio Osorio <[email protected]>
1 parent e1613ea commit b068f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegate/workspaces/crud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async def soft_delete_workspace(self, workspace_name: str):
112112
# Check if workspace is active, if it is, make the default workspace active
113113
active_workspace = await self._db_reader.get_active_workspace()
114114
if active_workspace and active_workspace.id == selected_workspace.id:
115-
_ = await self.activate_workspace("default")
115+
raise WorkspaceCrudError("Cannot delete active workspace.")
116116

117117
db_recorder = DbRecorder()
118118
try:

0 commit comments

Comments
 (0)