[deviantart:tiptap] fix TypeError when 'textAlign' is null (#7639)

This commit is contained in:
Mike Fährmann
2025-06-07 19:06:43 +02:00
parent b95b71f63f
commit 8227e21257

View File

@@ -438,7 +438,7 @@ class DeviantartExtractor(Extractor):
html.append('<p style="')
attrs = content["attrs"]
if "textAlign" in attrs:
if attrs.get("textAlign"):
html.append("text-align:")
html.append(attrs["textAlign"])
html.append(";")