Fix log error
This commit is contained in:
parent
0dc4117f10
commit
eb8eda9e48
1 changed files with 2 additions and 1 deletions
|
@ -253,7 +253,8 @@ def preview_url(
|
||||||
if tag.get("property", "").startswith(("og:", "twitter:")):
|
if tag.get("property", "").startswith(("og:", "twitter:")):
|
||||||
logging.debug(
|
logging.debug(
|
||||||
"Tag %r is an OG/Twitter tag, with property: %r",
|
"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")
|
tag_name = tag.get("property")
|
||||||
if tag_name in (*VALID_OG_TAGS, *TWITTER_MAPPING.keys()):
|
if tag_name in (*VALID_OG_TAGS, *TWITTER_MAPPING.keys()):
|
||||||
|
|
Loading…
Reference in a new issue