From ab89056f7e7c788101f74d98d497b2f0c367cca3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 Aug 2025 18:03:27 +0530 Subject: [PATCH] ... --- recipes/wsj.recipe | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index 6c831713f6..b3aadf55f6 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -255,7 +255,10 @@ class WSJ(BasicNewsRecipe): for arts in art['collectionItems']: mobi = arts['content']['mobileSummary'] title = mobi['headline']['text'] - desc = mobi['description']['content']['text'] + try: + desc = mobi['description']['content']['text'] + except TypeError: + desc = '' url = arts['id'] self.log(' ', title, '\n\t', desc) articles.append({'title': title, 'description': desc, 'url': url})