Prevent default filter from throwing UndefinedError #138

merged 1 commit into from May 19, 2013

2 participants


The default filter currently throws an UndefinedError when environment is using StrictUndefined mode and using the boolean flag for default filter. example:
{{ something|default(somethingelse, true) }}
Will throw an UndefinedError when something is undefined.
This pull request fixes that and adds a unit test exemplifying the problem.

@mitsuhiko mitsuhiko merged commit 2609cb3 into pallets:master May 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment