From f38fe753ec056b6862e9a00d93f4aa1384569c68 Mon Sep 17 00:00:00 2001 From: Patricia Grubel Date: Tue, 26 Mar 2024 16:54:51 -0600 Subject: [PATCH] Fix minor error when attempting reset with no active workflows (#805) --- beeflow/client/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/beeflow/client/core.py b/beeflow/client/core.py index 225321e12..060674b46 100644 --- a/beeflow/client/core.py +++ b/beeflow/client/core.py @@ -517,6 +517,7 @@ def reset(archive: bool = typer.Option(False, '--archive', '-a', # Check workflow states; warn if there are active states. workflow_list = bee_client.get_wf_list() active_states = {'Running', 'Paused', 'Initializing', 'Waiting'} + caution = "" if {item for row in workflow_list for item in row}.intersection(active_states): caution = """ **************************************************************