From ee5b24a93798d0f26dd679434bc3aeebe9920853 Mon Sep 17 00:00:00 2001 From: Henrik Holm Date: Sat, 5 Oct 2024 23:34:06 +0200 Subject: [PATCH] Prefix inner function with "_" --- recipes/fokus.recipe | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/fokus.recipe b/recipes/fokus.recipe index 726104e2e8..7475ece9ca 100644 --- a/recipes/fokus.recipe +++ b/recipes/fokus.recipe @@ -121,11 +121,12 @@ class Fokus(BasicNewsRecipe): return {'title': title, 'url': url, 'description': desc, 'date': swedish_date_str} def parse_web_section(self, soup, slug): - def log(article): + def _log(article): log_message = f"\t{article['title']} : {article['date']} : {article['url']}" if article.get('description'): log_message += f" : {article['description']}" self.log(log_message) + try: article_blurbs = soup.find_all('article', {'class': 'Blurb'}) except AttributeError: