From eb8eda9e48e7a7ca29baf0cd21b06e76712de138 Mon Sep 17 00:00:00 2001 From: nex Date: Thu, 22 Feb 2024 15:10:15 +0000 Subject: [PATCH] Fix log error --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index de87f75..71afcb0 100644 --- a/server.py +++ b/server.py @@ -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()):