Fix missing tags
This commit is contained in:
@ -537,7 +537,11 @@ 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)
|
||||||
|
|
||||||
should_send_embed: bool = bool(reader.get_tag(feed, "should_send_embed"))
|
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"))
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
"request": request,
|
"request": request,
|
||||||
|
Reference in New Issue
Block a user