morss: do not crash on empty pages
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
268d43914f
commit
c3052a0619
|
@ -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…
Reference in New Issue