Browse Source

Fix traceback if cann't open binary template.

develop
Mike Hiretsky 11 years ago
parent
commit
e83089b8b2
  1. 4
      pym/cl_template.py

4
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,

Loading…
Cancel
Save