diff --git a/pym/cl_template.py b/pym/cl_template.py index cd34257..a49a4d9 100644 --- a/pym/cl_template.py +++ b/pym/cl_template.py @@ -4372,6 +4372,10 @@ variable 'cl_name'")) if templateFileType == "bin": self.nameFileTemplate = os.path.abspath(nameFileTemplate) self.F_TEMPL = self.openTemplFile(self.nameFileTemplate) + if not self.F_TEMPL: + self.setError(_("Error open template") + ": " +\ + templateDirFile) + return False self.textTemplate = self.F_TEMPL.read() self.closeTemplFile() objHeadNew = fileHeader(nameFileTemplate, self.textTemplate, False,