From 0c0858c4ee3c8bcc315f6c9548a0b4729ba86643 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 30 Sep 2019 12:52:53 +0100 Subject: [PATCH] Bug fix. --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index bfeb305..0c0b959 100755 --- a/app.py +++ b/app.py @@ -423,6 +423,8 @@ def get_description_from_page(html): return div.text meta_twitter_description = root.find('.//meta[@name="twitter:description"]') + if meta_twitter_description is None: + return twitter_description = meta_twitter_description.get('content') if not twitter_description: return