From 1da17fca35813fb26223069849c64f66bcc32726 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 8 Jun 2022 15:32:04 +0200 Subject: [PATCH] Print invalid rules to help debug broken configurations --- platypush/event/hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/event/hook.py b/platypush/event/hook.py index 1d428e36..7dc3140a 100644 --- a/platypush/event/hook.py +++ b/platypush/event/hook.py @@ -63,7 +63,7 @@ class EventCondition(object): else: rule = parse(rule) - assert isinstance(rule, dict) + assert isinstance(rule, dict), f'Not a valid rule: {rule}' type = get_event_class_by_type( rule.pop('type') if 'type' in rule else 'Event')