Fix missing tags

This commit is contained in:
Joakim Hellsén 2023-01-23 17:39:11 +01:00
commit f6f3e3a7d2
No known key found for this signature in database
GPG key ID: C889E6DC5EDBB36D

View file

@ -537,6 +537,10 @@ async def get_feed(feed_url, request: Request):
# Create the html for the entries. # Create the html for the entries.
html: str = create_html_for_feed(entries) html: str = create_html_for_feed(entries)
try:
should_send_embed: bool = bool(reader.get_tag(feed, "should_send_embed"))
except TagNotFoundError:
add_missing_tags(reader)
should_send_embed: bool = bool(reader.get_tag(feed, "should_send_embed")) should_send_embed: bool = bool(reader.get_tag(feed, "should_send_embed"))
context = { context = {