diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-16 21:48:47 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-16 21:48:47 +0100 |
commit | ca70e392ba7b695faeb3f076baad73948b618fa2 (patch) | |
tree | 50b868ed615acb0e1ebe61e477bfe7616a1f21da /src/web/controllers | |
parent | Bugfix: argument of type 'NoneType' is not iterable in html.unescape(). (diff) | |
download | newspipe-ca70e392ba7b695faeb3f076baad73948b618fa2.tar.gz newspipe-ca70e392ba7b695faeb3f076baad73948b618fa2.tar.bz2 newspipe-ca70e392ba7b695faeb3f076baad73948b618fa2.zip |
Bugfix: should import Article in order to resolve the 'date' column for the ordering of the 'articles' relationship.
Diffstat (limited to 'src/web/controllers')
-rw-r--r-- | src/web/controllers/feed.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/web/controllers/feed.py b/src/web/controllers/feed.py index 6c41cce0..7203c37e 100644 --- a/src/web/controllers/feed.py +++ b/src/web/controllers/feed.py @@ -59,6 +59,9 @@ class FeedController(AbstractController): last_post = feed.articles[0].date except IndexError: continue + except Exception as e: + logger.exception(e) + continue elapsed = today - last_post if elapsed > timedelta(days=nb_days): inactives.append((feed, elapsed)) |