mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-06-13 16:55:14 +02:00
Fix initial flow
This commit is contained in:
parent
3689e75ffa
commit
731c3a34d4
1 changed files with 8 additions and 0 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue