taler-merchant-demos

Python-based Frontends for the Demonstration Web site
Log | Files | Refs | Submodules | README | LICENSE

commit 5bfdc99e7a2e60c4fe16e692128b7dccc60184c0
parent ea081314ab0a1b74e31f36fd2a163d6b84d2b9b0
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 21 Oct 2022 00:09:30 +0200

wrong var

Diffstat:
Mtalermerchantdemos/blog/content.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/talermerchantdemos/blog/content.py b/talermerchantdemos/blog/content.py @@ -104,7 +104,7 @@ def add_from_html(resource_name, lang): teaser = soup.find("p", attrs={"id": ["teaser"]}) if teaser is None: paragraphs = soup.find_all("p") - if len(titleat) > 0: + if len(paragraphs) > 0: teaser = paragraphs[0].prettify() if len(teaser) < 100: LOGGER.warning("Cannot extract adequate teaser from '%s'", resource_name)