From 1bda8aa015990ff8026aac7abdad8e42f4bd99bc Mon Sep 17 00:00:00 2001 From: Alex Kahan Date: Tue, 19 Jan 2016 20:28:16 -0500 Subject: [PATCH] Hack to get around not displaying comments and posts --- rtv/content.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rtv/content.py b/rtv/content.py index 010cf19..0d62cd7 100644 --- a/rtv/content.py +++ b/rtv/content.py @@ -455,7 +455,10 @@ class SubredditContent(Content): else: # TODO: In order to display saved comment, we need to # coerce the comment into a submission - data = self.strip_praw_submission(submission) + try: + data = self.strip_praw_submission(submission) + except: + continue data['index'] = index # Add the post number to the beginning of the title data['title'] = '{0}. {1}'.format(index+1, data.get('title'))