src/eric7/eric7_ide.py

branch
eric7
changeset 10955
0cc20e930444
parent 10933
95a15b70f7bb
child 11034
7b8a21fd2d58
--- 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)
 

eric ide

mercurial