In case something goes wrong with articles, do not bail. - zs - Zeitungsschau rss to email converter
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit da06d30ff47031e7ddf40b37d841586ac9bd9c48
(DIR) parent db76e2d4316c29fc03b843e7339f3b1ecb31fc08
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Tue, 23 May 2017 20:12:57 +0200
In case something goes wrong with articles, do not bail.
Diffstat:
zs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/zs b/zs
@@ -95,7 +95,11 @@ def run(db, selfeed=None, dryrun=False, onlychanges=False):
elif retries > 0:
db.setretry(feeduri, 0)
- clen = len(curfeed["articles"])
+ try:
+ clen = len(curfeed["articles"])
+ except AttributeError:
+ continue
+
if clen == 0:
# This is no target anymore. Thanks NATO for your
# crappy RSS feed!