#30425: Jinja: get_exception_info: source might be None
-------------------------------------------+------------------------
Reporter: Daniel Hahler | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
The "source" attribute might be None with syntax error exceptions with
Jinja2 templates.
The current code
(https://github.com/django/django/blob/673fe2e3ec63614259e86e7a370b9d1e91fcc1e1/django/template/backends/jinja2.py#L84-L108)
does not handle it, but could read the source then.
See https://github.com/niwinz/django-jinja/pull/233 for a fix with more
details.
--
Ticket URL: <https://code.djangoproject.com/ticket/30425>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.aaba2cec60af337798dec1aa7472ea32%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.