From 8f2d8736eed077ceca11c68a2fb39b843d6c4e5a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 4 Nov 2021 16:13:09 +0200 Subject: [PATCH] fdsfds --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 33d514d0c2..8d4f8cbd57 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -134,7 +134,7 @@ def sanitize(sanitized, noimages=False): tag.wrap(link) for tag in soup.find_all("a"): - if tag["href"]: + if tag.get("href"): tag["target"] = "_blank" if site not in tag["href"]: tag["rel"] = "nofollow noopener noreferrer"