matcher.add() issue #9159
Answered
by
polm
Sumanthbab
asked this question in
Help: Coding & Implementations
matcher.add() issue
#9159
-
Got the below error for code. Pattern seems right list of dict. What am I doing wrong?
|
Beta Was this translation helpful? Give feedback.
Answered by
polm
Sep 7, 2021
Replies: 1 comment 1 reply
-
Like the error says, each pattern should be a list of dicts. When you pass patterns to
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
adrianeboyd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like the error says, each pattern should be a list of dicts. When you pass patterns to
matcher.add
, you don't pass one pattern, you pass a list of patterns. In your case you can fix it like this: