ansible/lib/ansible/template
Pilou 62c05033d6 templar: ensure that exceptions are handled, fix 'AttributeError' (#48792)
* templar: ensure that exceptions are handled

* Fix AttributeError: object has no attribute 'message'

'message' attribute is deprecated since Python 2.6 and not available
with Python 3.

Simple reproducer:

    - hosts: localhost
      vars:
        not_json: "{{ 'test str' | from_json }}"
      tasks:
        - command: "echo {{ not_json }}"
2018-11-29 09:56:23 -05:00
..
__init__.py Warn about falling back to jinja2_native=false (#49063) 2018-11-27 18:11:42 +01:00
native_helpers.py Fix using vault encrypted data with jinja2_native (#49025) 2018-11-27 16:44:22 -05:00
safe_eval.py Fix loader for filters (#37748) 2018-03-22 17:23:10 -04:00
template.py template: fix KeyError: 'undefined variable: 0 (#27972) 2017-08-09 18:50:53 -04:00
vars.py templar: ensure that exceptions are handled, fix 'AttributeError' (#48792) 2018-11-29 09:56:23 -05:00