Skip to content

Commit

Permalink
skip scripts with no modules
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 committed Oct 9, 2024
1 parent 76be7a1 commit c8bf830
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

- Unregister webhooks from the Nextcloud instance during ExApp disabling.
- Incorrect handling Windmill scripts with no modules in it. #11
- Unregister webhooks from the Nextcloud instance during ExApp disabling. #10

## [1.0.0 - 2024-09-13]

Expand Down
3 changes: 3 additions & 0 deletions ex_app/lib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,9 @@ def get_expected_listeners(workspace: str, token: str, flow_paths: list[str]) ->
except json.JSONDecodeError:
LOGGER.exception("Error parsing JSON", stack_info=True)
return []
if not response_data["value"].get("modules", []):
LOGGER.debug("Flow %s has no modules in it, skipping,", flow_path)
return flows
first_module = response_data["value"]["modules"][0]
if (
first_module.get("summary", "") == "CORE:LISTEN_TO_EVENT"
Expand Down

0 comments on commit c8bf830

Please sign in to comment.