Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Platypush
platypush
Commits
1da17fca
Commit
1da17fca
authored
Jun 08, 2022
by
Fabio Manganiello
Browse files
Print invalid rules to help debug broken configurations
parent
35cb72f5
Pipeline
#255
passed with stages
in 5 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
platypush/event/hook.py
View file @
1da17fca
...
...
@@ -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'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment