Fix initial flow

This commit is contained in:
Cyber MacGeddon 2026-05-01 16:48:51 +01:00
parent 3689e75ffa
commit 731c3a34d4

View file

@ -49,6 +49,14 @@ class DefaultFlowStart(Initialiser):
async def run(self, ctx, old_flag, new_flag):
workspaces = await ctx.config.keys(
"__workspaces__", "workspace",
)
if self.workspace not in workspaces:
raise RuntimeError(
f"Workspace {self.workspace!r} does not exist yet"
)
flow = ctx.make_flow_client(self.workspace)
await flow.start()