Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ataylor32 committed May 21, 2024
1 parent 007a2b5 commit 5b30782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/friendlytagloader/templatetags/friendly_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def do_if_has_tag(parser, token, negate=False):
end_tag = 'end%s' % bits[0]
has_tag = all([tag in parser.tags for tag in bits[1:]])
has_tag = (not negate and has_tag) or (negate and not has_tag)
nodelist_true = nodelist_false = CommentNode()
nodelist_true = nodelist_false = [CommentNode()]
if has_tag:
nodelist_true = parser.parse(('else', end_tag))
token = parser.next_token()
Expand Down

0 comments on commit 5b30782

Please sign in to comment.