diff myrss2/myrss_app.py @ 142:2ed8cf5f36bf

myrss2: fix handling of null feed title or links; miscellaneous URL updates
author paulo
date Mon, 18 Dec 2023 20:10:27 +0000
parents 1a5c0fc5627a
children
line diff
     1.1 --- a/myrss2/myrss_app.py	Sun Aug 06 17:34:26 2023 +0000
     1.2 +++ b/myrss2/myrss_app.py	Mon Dec 18 20:10:27 2023 +0000
     1.3 @@ -138,6 +138,11 @@
     1.4  
     1.5      (title, link, items) = feed
     1.6  
     1.7 +    if title is None:
     1.8 +      title = "(No title)"
     1.9 +    if link is None:
    1.10 +      link = ""
    1.11 +
    1.12      logging.debug("title: %s", title)
    1.13      body.h2.a(_strip_html(title), href=link, klass="z%d" % (link_z % MAX_LINK_Z))
    1.14      link_z += 1