Browse Source

morss: do not crash on empty pages

pictuga 1 week ago
parent
commit
c3052a0619
  1. 4
      morss/morss.py

4
morss/morss.py

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

Loading…
Cancel
Save