Hack to get around not displaying comments and posts

This commit is contained in:
Alex Kahan
2016-01-19 20:28:16 -05:00
parent 6b3ad77ac8
commit 1bda8aa015

View File

@@ -455,7 +455,10 @@ class SubredditContent(Content):
else: else:
# TODO: In order to display saved comment, we need to # TODO: In order to display saved comment, we need to
# coerce the comment into a submission # coerce the comment into a submission
data = self.strip_praw_submission(submission) try:
data = self.strip_praw_submission(submission)
except:
continue
data['index'] = index data['index'] = index
# Add the post number to the beginning of the title # Add the post number to the beginning of the title
data['title'] = '{0}. {1}'.format(index+1, data.get('title')) data['title'] = '{0}. {1}'.format(index+1, data.get('title'))