Hack to get around not displaying comments and posts
This commit is contained in:
@@ -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'))
|
||||||
|
|||||||
Reference in New Issue
Block a user