diff --git a/pym/calculate/lib/cl_template.py b/pym/calculate/lib/cl_template.py index 931ec76..bb51e23 100644 --- a/pym/calculate/lib/cl_template.py +++ b/pym/calculate/lib/cl_template.py @@ -6023,6 +6023,10 @@ gettext -d cl_template "$*" # Выполняем условия для блока текста а так-же заменяем переменные self.nameFileTemplate = os.path.abspath(nameFileTemplate) self.F_TEMPL = self.openTemplFile(self.nameFileTemplate) + if self.F_TEMPL == False: + self.setError(_("Failed to open the file") + _(": ") + + self.nameFileTemplate) + return [] origTextTemplate, file_is_unicode = try_decode_utf8(self.F_TEMPL.read()) self.textTemplate = origTextTemplate self.configMode = T_ORIGIN