mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-09 14:34:34 +12:00
Fix potential issue from the future
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
72933c9978
commit
3ac87d9125
|
@ -355,7 +355,7 @@ class abstractModel(QAbstractItemModel):
|
||||||
return None
|
return None
|
||||||
encodedData = bytes(data.data("application/xml")).decode()
|
encodedData = bytes(data.data("application/xml")).decode()
|
||||||
root = ET.XML(encodedData)
|
root = ET.XML(encodedData)
|
||||||
if not root:
|
if root is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if root.tag != "outlineItems":
|
if root.tag != "outlineItems":
|
||||||
|
|
Loading…
Reference in a new issue