src/eric7/Sessions/SessionFile.py

branch
eric7
changeset 10385
43fed9763dd1
parent 10339
446d22fa1aea
child 10366
411df92e881f
diff -r 5d02b2c6faaa -r 43fed9763dd1 src/eric7/Sessions/SessionFile.py
--- 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"],

eric ide

mercurial