morss: do not crash on empty pages

master
pictuga 2021-09-11 21:50:09 +02:00
parent 0c29102788
commit 9649cabb1b
1 changed files with 4 additions and 0 deletions

View File

@ -218,6 +218,10 @@ def ItemFill(item, options, feedurl='/', fast=False):
log('non-text page')
return True
if not req['data']:
log('empty page')
return True
out = readabilite.get_article(req['data'], url=req['url'], encoding_in=req['encoding'], encoding_out='unicode')
if out is not None: