From 69e363df2feae89daf1b3fe165f5291c21ebeda9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 13 Aug 2009 18:18:32 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=18838 --- py/Boinc/boincxml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/Boinc/boincxml.py b/py/Boinc/boincxml.py index 34902055a5..6871045ca2 100644 --- a/py/Boinc/boincxml.py +++ b/py/Boinc/boincxml.py @@ -120,9 +120,9 @@ class XMLConfig: return self def read(self, failopen_ok=False): """Read the XML object's file source and return self.""" - if failopen_ok and not os.path.exists(self.filename) + if failopen_ok and not os.path.exists(self.filename): self._init_empty_xml() - return self; + return self try: self.xml = xml.dom.minidom.parse(self.filename) strip_white_space(self.xml)