svn path=/trunk/boinc/; revision=18840

This commit is contained in:
David Anderson 2009-08-13 18:22:40 +00:00
parent a1d18e7e11
commit c653852718
1 changed files with 9 additions and 9 deletions

View File

@ -122,15 +122,15 @@ class XMLConfig:
"""Read the XML object's file source and return self."""
if failopen_ok and not os.path.exists(self.filename):
self._init_empty_xml()
return self
try:
self.xml = xml.dom.minidom.parse(self.filename)
strip_white_space(self.xml)
except:
if not failopen_ok:
raise Exception("Couldn't parse XML config\n")
print >>sys.stderr, "Warning: couldn't parse XML file"
self._init_empty_xml()
else:
try:
self.xml = xml.dom.minidom.parse(self.filename)
strip_white_space(self.xml)
except:
if not failopen_ok:
raise Exception("Couldn't parse XML config\n")
print >>sys.stderr, "Warning: couldn't parse XML file"
self._init_empty_xml()
try:
self._get_elements()
except: