eric6/Debugger/DebuggerInterfacePython.py

changeset 8240
93b8a353c4bf
parent 8230
8b5c6896655b
child 8243
cc717c2ae956
diff -r 59a9a658618c -r 93b8a353c4bf eric6/Debugger/DebuggerInterfacePython.py
--- a/eric6/Debugger/DebuggerInterfacePython.py	Wed Apr 14 19:38:19 2021 +0200
+++ b/eric6/Debugger/DebuggerInterfacePython.py	Wed Apr 14 19:59:16 2021 +0200
@@ -11,6 +11,7 @@
 import os
 import logging
 import shlex
+import contextlib
 
 from PyQt5.QtCore import (
     QObject, QProcess, QProcessEnvironment, QTimer
@@ -601,12 +602,10 @@
         
         if not self.__connections:
             # no active connections anymore
-            try:
+            with contextlib.suppress(RuntimeError):
                 self.debugServer.signalLastClientExited()
-            except RuntimeError:
                 # debug server object might have been deleted already
                 # ignore this
-                pass
             self.__autoContinued.clear()
             self.debugServer.startClient()
     

eric ide

mercurial