Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Prevent default filter from throwing UndefinedError #138

merged 1 commit into from May 19, 2013


None yet
2 participants

gazpachoking commented Jul 5, 2012

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 added a commit that referenced this pull request May 19, 2013

@mitsuhiko mitsuhiko Merge pull request #138 from gazpachoking/default_fix
Prevent default filter from throwing UndefinedError

@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