Skip to content

Commit ab01a82

Browse files
committed
Fixes TemplateDebugPanel iterating over an unknown template without origin or name
1 parent 929c6be commit ab01a82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

debug_toolbar/panels/template.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ def content(self):
7878
# Skip templates that we are generating through the debug toolbar.
7979
if template.name and template.name.startswith('debug_toolbar/'):
8080
continue
81+
if template.name == "<Unknown Template>":
82+
continue
8183
if template.origin and template.origin.name:
8284
template.origin_name = template.origin.name
8385
else:

0 commit comments

Comments
 (0)