diff -r aa713ac50c0d -r cc717c2ae956 eric6/Debugger/DebugServer.py --- a/eric6/Debugger/DebugServer.py Thu Apr 15 16:52:05 2021 +0200 +++ b/eric6/Debugger/DebugServer.py Thu Apr 15 18:11:24 2021 +0200 @@ -1487,11 +1487,8 @@ @param debuggerId ID of the debugger backend @type str """ - try: + with contextlib.suppress(AttributeError): self.debuggerInterface.remoteClientDisassembly(debuggerId) - except AttributeError: - # remote client doesn't support that - pass def remoteClientSetFilter(self, debuggerId, scope, filterStr): """ @@ -1996,12 +1993,9 @@ @param venvName name of the virtual environment @type str """ - try: + with contextlib.suppress(KeyError): self.__debuggerInterfaceRegistry[clientType][0] = capabilities self.clientCapabilities.emit(capabilities, clientType, venvName) - except KeyError: - # ignore silently - pass def signalClientCompletionList(self, completionList, text, debuggerId): """