[Django] #26280: TemplateDoesNotExists raised without message

28 views
Skip to first unread message

Django

unread,
Feb 25, 2016, 10:09:09 AM2/25/16
to django-...@googlegroups.com
#26280: TemplateDoesNotExists raised without message
-------------------------------+--------------------
Reporter: tsouvarev | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
If you use cached loader to load non-existing template, then you will get
`TypeError: __init__() takes at least 2 arguments (1 given)`, because
`TemplateDoesNotExist` raised without message

--
Ticket URL: <https://code.djangoproject.com/ticket/26280>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 25, 2016, 10:29:28 AM2/25/16
to django-...@googlegroups.com
#26280: Cached template loader crashes when loading nonexistent template
---------------------------------+------------------------------------
Reporter: tsouvarev | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by timgraham):

* needs_better_patch: => 0
* component: Uncategorized => Template system
* needs_tests: => 1
* version: 1.9 => 1.8
* needs_docs: => 0
* has_patch: 0 => 1
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted


Comment:

Looks to me like this affects 1.8 as well (blamed the line modified in the
[https://github.com/django/django/pull/6198 PR] to
f33db5a09acfc3df3085235a5712c46094eb9a0d which was added in 1.7).

--
Ticket URL: <https://code.djangoproject.com/ticket/26280#comment:1>

Django

unread,
Feb 26, 2016, 7:54:14 AM2/26/16
to django-...@googlegroups.com
#26280: Cached template loader crashes when loading nonexistent template
-------------------------------------+-------------------------------------
Reporter: tsouvarev | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* version: 1.8 => 1.9
* needs_tests: 1 => 0
* stage: Accepted => Ready for checkin


Comment:

Actually, the crash is a regression in Django 1.9.

--
Ticket URL: <https://code.djangoproject.com/ticket/26280#comment:2>

Django

unread,
Feb 26, 2016, 8:02:31 AM2/26/16
to django-...@googlegroups.com
#26280: Cached template loader crashes when loading nonexistent template
-------------------------------------+-------------------------------------
Reporter: tsouvarev | Owner: nobody
Type: Bug | Status: closed

Component: Template system | Version: 1.9
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"8890c533e0b53cb0021bd5faf15668430cd3075a" 8890c53]:
{{{
#!CommitTicketReference repository=""
revision="8890c533e0b53cb0021bd5faf15668430cd3075a"
Fixed #26280 -- Fixed cached template loader crash when loading
nonexistent template.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26280#comment:3>

Django

unread,
Feb 26, 2016, 8:05:46 AM2/26/16
to django-...@googlegroups.com
#26280: Cached template loader crashes when loading nonexistent template
-------------------------------------+-------------------------------------
Reporter: tsouvarev | Owner: nobody

Type: Bug | Status: closed
Component: Template system | Version: 1.9
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"cd46947ddb6719c819e75464d6aa0a10a6c10fad" cd46947d]:
{{{
#!CommitTicketReference repository=""
revision="cd46947ddb6719c819e75464d6aa0a10a6c10fad"
[1.9.x] Fixed #26280 -- Fixed cached template loader crash when loading
nonexistent template.

Backport of 8890c533e0b53cb0021bd5faf15668430cd3075a from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26280#comment:4>

Reply all
Reply to author
Forward
0 new messages