Clear the project if open fails
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user