--- a/CodeFileTreeNode.py Fri Oct 13 13:17:42 2017 +0300
+++ b/CodeFileTreeNode.py Mon Oct 16 17:20:31 2017 +0300
@@ -103,7 +103,6 @@
self.CodeFileVariables = etree.XPath("variables/variable")
filepath = self.CodeFileName()
-
if os.path.isfile(filepath):
xmlfile = open(filepath, 'r')
codefile_xml = xmlfile.read()
@@ -124,9 +123,10 @@
self.GetCTRoot().logger.write_warning(XSDSchemaErrorMessage.format(a1=fname, a2=lnum, a3=src))
self.CreateCodeFileBuffer(True)
except Exception, exc:
- msg = _("Couldn't load confnode parameters {a1} :\n {a2}").format(a1=CTNName, a2=unicode(exc))
+ msg = _("Couldn't load confnode parameters {a1} :\n {a2}").format(a1=self.CTNName(), a2=unicode(exc))
self.GetCTRoot().logger.write_error(msg)
self.GetCTRoot().logger.write_error(traceback.format_exc())
+ raise Exception
else:
self.CodeFile = self.CodeFileParser.CreateRoot()
self.CreateCodeFileBuffer(False)