I'm at a dead end ((I made a program in PyCharm, everything works. I compiled a python code into a binary using cx_Freeze. Everything works until I run a part of the script written using the docxtpl library, after which the process crashes or messages. In this part of the program, the script must process the word file template and save the created new file to disk.
def buttonClicked_docmaker(self): self.doc = DocxTemplate("template_AI.docx") self.context = {'factory_number': self.fgi.zavnumber} self.doc.render(self.context) self.doc.save("D:\\AI.docx")
How can you organize the interception of such system errors in the source code to find the cause?