Skip to content

Raise UndefinedError from Undefined.__contains__#1204

Merged
davidism merged 1 commit intopallets:masterfrom
dparker2:undefined-contains
Apr 5, 2021
Merged

Raise UndefinedError from Undefined.__contains__#1204
davidism merged 1 commit intopallets:masterfrom
dparker2:undefined-contains

Conversation

@dparker2
Copy link
Copy Markdown
Contributor

@dparker2 dparker2 commented May 9, 2020

Fixes #1198. I'm assuming this is the desired behavior -- let me know if not!

Copy link
Copy Markdown
Member

@kevin-brown kevin-brown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding in the test to confirm it fixes the issue!

@davidism davidism force-pushed the undefined-contains branch from b7196e0 to 609bcb0 Compare April 5, 2021 17:45
@davidism davidism changed the base branch from 2.11.x to master April 5, 2021 17:45
@davidism davidism merged commit 139c3ee into pallets:master Apr 5, 2021
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 20, 2021
ewjoachim pushed a commit to ewjoachim/jinja that referenced this pull request May 26, 2021
ewjoachim pushed a commit to ewjoachim/jinja that referenced this pull request May 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: argument of type 'StrictUndefined' is not iterable when callin value in dict with missing key

3 participants