@@ 196,13 196,16 @@ Content-Type: {}
desc = ''
content_type = 'text/plain'
if not self.links:
- if self.strip:
- stripper = HTMLStripper()
- stripper.feed(post.description)
- desc = stripper.get_data()
- else:
- desc = post.description
- content_type = 'text/html'
+ try:
+ if self.strip:
+ stripper = HTMLStripper()
+ stripper.feed(post.description)
+ desc = stripper.get_data()
+ else:
+ desc = post.description
+ content_type = 'text/html'
+ except AttributeError:
+ desc = 'Unknown'
return self.TEMPLATE.format(updated,
post.title,
title.lower().replace(' ', '-'),