Fix a potential bug

This commit is contained in:
Veronica Berglyd Olsen
2022-10-18 23:46:08 +02:00
parent 0f72c45fbc
commit ac05dbc55b
+1 -1
View File
@@ -187,7 +187,7 @@ class NWProject:
return False
newDoc = NWDoc(self, tHandle)
if newDoc.readDocument().strip():
if (newDoc.readDocument() or "").strip():
return False
hshText = "#"*minmax(hLevel, 1, 4)