From 6761166ec3ee6280d245269334093de8b546eab5 Mon Sep 17 00:00:00 2001 From: infintropy <36432437+infintropy@users.noreply.github.com> Date: Wed, 13 Apr 2022 10:44:04 -0600 Subject: [PATCH] allow for step/type actions to not be present --- python/widgets/open_sync_form.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python/widgets/open_sync_form.py b/python/widgets/open_sync_form.py index 44ccb53..1c1e60e 100644 --- a/python/widgets/open_sync_form.py +++ b/python/widgets/open_sync_form.py @@ -307,10 +307,11 @@ def save_ui_state(self, state_str=None): if data.get(filter_name): filter_data = data.get(filter_name) # overwrite it with our scan of presently checked items - actions = getattr(self, "_{}_actions".format(f)) - if actions: - for k,v in actions.items(): - filter_data[k] = v.isChecked() + if hasattr(self, "_{}_actions".format(f)): + actions = getattr(self, "_{}_actions".format(f)) + if actions: + for k,v in actions.items(): + filter_data[k] = v.isChecked() data[filter_name] = filter_data