Skip to content

Commit

Permalink
Merge pull request #4 from openimis/hotfix/workflow-handler
Browse files Browse the repository at this point in the history
Changed Attribute error to log, so invalid workflows will not break UI
  • Loading branch information
sniedzielski committed Jun 27, 2023
2 parents d30cd3d + 5857de5 commit 35e46c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions workflow/systems/lightning/adaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ def _get_workflows_from_provision_response(cls, provision_response, name):

webhook_triggers = [trigger for trigger in entry['triggers'] if trigger['type'] == 'webhook']
if not webhook_triggers:
raise AttributeError(
f'{cls.system}-{group}-{entry["name"]} have no webhook triggers. Cannot create WorkflowHandler')

logger.error(f'{cls.system}-{group}-{entry["name"]} have no webhook triggers. Cannot create WorkflowHandler')
continue
workflows.append(LightningWorkflowHandler(
system=cls.system,
group=group,
Expand Down

0 comments on commit 35e46c7

Please sign in to comment.