Skip to content

Commit

Permalink
fix AttributeError: 'NoneType' object has no attribute 'getroottree' …
Browse files Browse the repository at this point in the history
…when the result is not html / is empty.
  • Loading branch information
sunew committed Jul 14, 2015
1 parent 7d4ae66 commit 51c0f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plone/app/theming/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def parseTree(self, result):

try:
return getHTMLSerializer(result, pretty_print=False)
except (TypeError, etree.ParseError):
except (AttributeError, TypeError, etree.ParseError):
return None

def transformString(self, result, encoding):
Expand Down

0 comments on commit 51c0f1a

Please sign in to comment.