diff --git a/apprise/conversion.py b/apprise/conversion.py index 891714336d..898f80075a 100644 --- a/apprise/conversion.py +++ b/apprise/conversion.py @@ -308,7 +308,7 @@ def handle_starttag(self, tag, attrs): self._preserver_cr = True elif tag == 'a': - for name, link in attrs: + for name, link in attrs: # pragma: no branch if name == 'href': self._link = '(' + link + ')' # Take an early exit for speed (in case there are more diff --git a/test/test_conversion.py b/test/test_conversion.py index c09eb86e8a..406db664d9 100644 --- a/test/test_conversion.py +++ b/test/test_conversion.py @@ -107,6 +107,11 @@ def to_html(body): "my link") == \ "test my link" + # a with missing href entry + assert to_html("test " + "my link") == \ + "test my link" + #
missing assert to_html("