From dadc693af3cba648c495d49a3e1578a53630b634 Mon Sep 17 00:00:00 2001 From: Askill Date: Mon, 15 Jul 2024 16:14:36 +0200 Subject: [PATCH] fixed error handeling when no new sites have been found --- src/Watcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Watcher.py b/src/Watcher.py index 74bda2a..b54dcfd 100644 --- a/src/Watcher.py +++ b/src/Watcher.py @@ -66,8 +66,8 @@ class Watcher: news = self.site_store.get_site_links(f"{self.remove_protocol(url)}/{list_of_files[-1]}") if news: sites_contents = self.site_reader.get_sites_content_static([z.split("'")[1] for z in list(news["dictionary_item_added"])]) - - return sites_contents + return sites_contents + return {} @staticmethod def search_sites(url, content, keywords: List[str]):