Print invalid rules to help debug broken configurations

keep-around/1da17fca35813fb26223069849c64f66bcc32726
Fabio Manganiello 4 months ago
parent 35cb72f5aa
commit 1da17fca35
  1. 2
      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')

Loading…
Cancel
Save