change error handling
This commit is contained in:
parent
e5f90f79d1
commit
70d58b9889
1 changed files with 2 additions and 2 deletions
|
|
@ -125,8 +125,8 @@ def update_feed(feed):
|
||||||
text = get_article_text(a)
|
text = get_article_text(a)
|
||||||
write_to_file(os.path.join(feedpath_new, filename), text)
|
write_to_file(os.path.join(feedpath_new, filename), text)
|
||||||
log(' added article "{}"'.format(a.title))
|
log(' added article "{}"'.format(a.title))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error(' while parsing article "{}: {}"'.format(a.title, e))
|
error('while parsing feed article "{}" from feed "{}": {}'.format(a.title, feed['name'], e))
|
||||||
|
|
||||||
|
|
||||||
# Delete articles older than max_age
|
# Delete articles older than max_age
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue