Thanks, that's exactly what I need!micha wrote:You can use the commands error and assert. See in PiL.
One more question. When an error appears, can I somehow write the text of the error to the error log file (error**.txt, where ** is a consecutive number of a file)?