mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-15 10:22:26 +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
|
||||
encodedData = bytes(data.data("application/xml")).decode()
|
||||
root = ET.XML(encodedData)
|
||||
if not root:
|
||||
if root is None:
|
||||
return None
|
||||
|
||||
if root.tag != "outlineItems":
|
||||
|
|
Loading…
Reference in a new issue