--- a/src/eric7/eric7_ide.py Sat Oct 05 17:54:28 2024 +0200 +++ b/src/eric7/eric7_ide.py Sun Oct 06 10:10:08 2024 +0200 @@ -282,7 +282,8 @@ errmsg = "{0}: \n{1}".format(str(excType), str(excValue)) sections = ["", separator, timeString, separator, errmsg, separator, tbinfo] msg = "\n".join(sections) - with contextlib.suppress(OSError), open(logFile, "w", encoding="utf-8") as f: + with contextlib.suppress(OSError), open(logFile, "a", encoding="utf-8") as f: + # Open in append mode to be able to catch multiple (follow-on) exceptions. f.write(msg) f.write(versionInfo)