Skip to content

Commit

Permalink
Bugfix - AttributeError: 'NoneType' object has no attribute 'parent' -
Browse files Browse the repository at this point in the history
  • Loading branch information
jedie committed Apr 4, 2012
1 parent 4ecb7dc commit 9e5b5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion creole/html_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def handle_endtag(self, tag):
if tag in ("ul", "ol"):
self.__list_level -= 1

if tag in BLOCK_TAGS:
if tag in BLOCK_TAGS or self.cur is None:
self._go_up()
else:
self.cur = self.cur.parent
Expand Down

0 comments on commit 9e5b5dd

Please sign in to comment.