Clear the project if open fails

This commit is contained in:
Veronica K. B. Olsen
2019-11-02 12:56:14 +01:00
parent dd97aefd60
commit f60eeedce8
+1
View File
@@ -201,6 +201,7 @@ class NWProject():
nwXML = etree.parse(fileName)
except Exception as e:
self.makeAlert(["Failed to parse project xml.",str(e)], nwAlert.ERROR)
self.clearProject()
return False
xRoot = nwXML.getroot()