Skip to content

Commit fc00625

Browse files
author
Istemi Ekin Akkus
committed
fix: return empty workflow list for new users, fixes #16
1 parent 4a4a8e3 commit fc00625

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ManagementService/python/getWorkflows.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ def handle(value, sapi):
138138
try:
139139
workflows = sapi.get(email + "_list_workflows", True)
140140
if workflows is None or workflows == "":
141-
raise Exception("Couldn't retrieve workflow status; no such workflow.")
142-
143-
workflows = json.loads(workflows)
141+
workflows = {}
142+
else:
143+
workflows = json.loads(workflows)
144144

145145
# get single workflow status
146146
if "workflow" in data and "id" in data["workflow"]:

0 commit comments

Comments
 (0)