From 05b1fcd43a1c0a2429683d3bf77d8f7faf1d4119 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 6 Sep 2024 11:55:03 +0200 Subject: [PATCH] [procedures] Don't validate the presence of the `actions` field in `procedures.save`. When saving procedures with if/else/for blocks, some blocks aren't supposed to have the `actions` field. --- platypush/plugins/procedures/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/platypush/plugins/procedures/__init__.py b/platypush/plugins/procedures/__init__.py index db3d142710..3e66f7631e 100644 --- a/platypush/plugins/procedures/__init__.py +++ b/platypush/plugins/procedures/__init__.py @@ -185,9 +185,6 @@ class ProceduresPlugin(RunnablePlugin, ProcedureEntityManager): """ assert name, 'Procedure name cannot be empty' assert actions, 'Procedure actions cannot be empty' - assert all( - isinstance(action, dict) and action.get('action') for action in actions - ), 'Procedure actions should be dictionaries with an "action" key' args = args or [] proc_def = self._all_procedures.get(name, {})