From ebb05e362fd216020e4e8bdff09555308f0e3549 Mon Sep 17 00:00:00 2001 From: Max Dallabetta Date: Tue, 3 Sep 2024 13:02:01 +0200 Subject: [PATCH] fix a bug with topic parsing --- src/fundus/publishers/ca/cbc_news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fundus/publishers/ca/cbc_news.py b/src/fundus/publishers/ca/cbc_news.py index 75ae1fc3..fba874ab 100644 --- a/src/fundus/publishers/ca/cbc_news.py +++ b/src/fundus/publishers/ca/cbc_news.py @@ -52,7 +52,7 @@ def title(self) -> Optional[str]: @attribute def topics(self) -> List[str]: - if (topic_dict := self.precomputed.ld.bf_search("keywords")) is None: + if not (topic_dict := self.precomputed.ld.bf_search("keywords")): return [] # add locations