[deviantart:tiptap] fix TypeError when 'textAlign' is null (#7639)
This commit is contained in:
@@ -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(";")
|
||||
|
||||
Reference in New Issue
Block a user