mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing a bug around empty/blank story content. Don't panic
This commit is contained in:
parent
7453e71aae
commit
1c9b2fbff8
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ class Feed(models.Model):
|
|||
elif existing_story.get('story_content_z'):
|
||||
original_content = zlib.decompress(existing_story.get('story_content_z'))
|
||||
# print 'Type: %s %s' % (type(original_content), type(story_content))
|
||||
if len(story_content) > 10:
|
||||
if story_content and len(story_content) > 10:
|
||||
diff = HTMLDiff(unicode(original_content), story_content)
|
||||
story_content_diff = diff.getDiff()
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue