Fix log error

This commit is contained in:
Nexus 2024-02-22 15:10:15 +00:00
parent 0dc4117f10
commit eb8eda9e48
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -253,7 +253,8 @@ def preview_url(
if tag.get("property", "").startswith(("og:", "twitter:")):
logging.debug(
"Tag %r is an OG/Twitter tag, with property: %r",
textwrap.shorten(tag.get("content", "N/A"), 100)
tag.get("property", "N/A"),
textwrap.shorten(tag.get("content", "N/A"), 100),
)
tag_name = tag.get("property")
if tag_name in (*VALID_OG_TAGS, *TWITTER_MAPPING.keys()):