forked from platypush/platypush
Print invalid rules to help debug broken configurations
This commit is contained in:
parent
35cb72f5aa
commit
1da17fca35
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue