From f8998b687ef2e5e362d1308d256ba91b781467d5 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 16 Oct 2019 08:56:31 +0000 Subject: [PATCH] Fix crash from domain and ext check bug --- apiserver/feed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/feed.py b/apiserver/feed.py index cef832f..22e3c2c 100644 --- a/apiserver/feed.py +++ b/apiserver/feed.py @@ -94,11 +94,11 @@ def update_story(story): if story.get('url', '') and not story.get('text', ''): if any([story['url'].endswith(ext) for ext in INVALID_FILES]): - logging.info('URL invalid file type ({})'.format(ext)) + logging.info('URL invalid file type') return False if any([domain in story['url'] for domain in INVALID_DOMAINS]): - logging.info('URL invalid domain ({})'.format(domain)) + logging.info('URL invalid domain') return False logging.info('Getting article ' + story['url'])