--- a/src/eric7/Sessions/SessionFile.py Sun Dec 03 14:39:57 2023 +0100 +++ b/src/eric7/Sessions/SessionFile.py Sun Dec 03 14:51:49 2023 +0100 @@ -331,8 +331,7 @@ } dbg.lastUsedVenvName = debugInfoDict["VirtualEnv"] - with contextlib.suppress(KeyError): - dbg.setScriptsHistory(debugInfoDict["ScriptName"]) + dbg.setScriptsHistory(debugInfoDict.get("ScriptName", "")) dbg.setArgvHistory(debugInfoDict["CommandLine"]) dbg.setWdHistory(debugInfoDict["WorkingDirectory"]) dbg.setEnvHistory(debugInfoDict["Environment"]) @@ -341,7 +340,7 @@ dbg.setAutoClearShell(debugInfoDict["AutoClearShell"]) dbg.setTracePython(debugInfoDict["TracePython"]) dbg.setAutoContinue(debugInfoDict["AutoContinue"]) - dbg.setExceptionReporting(debugInfoDict["ReportAllExceptions"]) + dbg.setExceptionReporting(debugInfoDict.get("ReportAllExceptions", False)) dbg.setEnableMultiprocess(debugInfoDict["EnableMultiprocess"]) dbg.setMultiprocessNoDebugHistory(debugInfoDict["MultiprocessNoDebug"]) dbg.setEnableGlobalConfigOverride(debugInfoDict["GlobalConfigOverride"]) @@ -356,7 +355,7 @@ debugInfoDict["AutoClearShell"], debugInfoDict["TracePython"], debugInfoDict["AutoContinue"], - debugInfoDict["ReportAllExceptions"], + debugInfoDict.get("ReportAllExceptions", False), debugInfoDict["EnableMultiprocess"], debugInfoDict["MultiprocessNoDebug"], debugInfoDict["GlobalConfigOverride"],