Gracefully failing Text view fetch.

This commit is contained in:
Samuel Clay 2013-06-09 03:01:36 -04:00
parent db23c948c7
commit ef19cda260

View file

@ -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