Clear the project if open fails
This commit is contained in:
@@ -201,6 +201,7 @@ class NWProject():
|
|||||||
nwXML = etree.parse(fileName)
|
nwXML = etree.parse(fileName)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.makeAlert(["Failed to parse project xml.",str(e)], nwAlert.ERROR)
|
self.makeAlert(["Failed to parse project xml.",str(e)], nwAlert.ERROR)
|
||||||
|
self.clearProject()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
xRoot = nwXML.getroot()
|
xRoot = nwXML.getroot()
|
||||||
|
|||||||
Reference in New Issue
Block a user