From ef19cda260c39b9291136f9fe8d94d658d34523c Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Sun, 9 Jun 2013 03:01:36 -0400 Subject: [PATCH] Gracefully failing Text view fetch. --- apps/rss_feeds/text_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/rss_feeds/text_importer.py b/apps/rss_feeds/text_importer.py index 727afde2d..605ed868c 100644 --- a/apps/rss_feeds/text_importer.py +++ b/apps/rss_feeds/text_importer.py @@ -41,7 +41,7 @@ class TextImporter: )) else: logging.user(self.request, "~SN~FRFailed~FY to fetch ~FGoriginal text~FY: was ~SB%s bytes" % ( - len(zlib.decompress(self.story.story_content_z)) + self.story.story_content_z and len(zlib.decompress(self.story.story_content_z)) )) return content \ No newline at end of file