Skip to content

Commit

Permalink
Fixes TemplateDebugPanel iterating over an unknown template without o…
Browse files Browse the repository at this point in the history
…rigin or name
  • Loading branch information
maraujop committed Jun 9, 2011
1 parent 929c6be commit ab01a82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions debug_toolbar/panels/template.py
Expand Up @@ -78,6 +78,8 @@ def content(self):
# Skip templates that we are generating through the debug toolbar.
if template.name and template.name.startswith('debug_toolbar/'):
continue
if template.name == "<Unknown Template>":
continue
if template.origin and template.origin.name:
template.origin_name = template.origin.name
else:
Expand Down

0 comments on commit ab01a82

Please sign in to comment.