Debugger/DebugServer.py

changeset 6367
7bc6fc02d981
parent 6352
4bdc6503df81
child 6374
fcd97204ff16
--- a/Debugger/DebugServer.py	Sun Jun 24 13:51:26 2018 +0200
+++ b/Debugger/DebugServer.py	Mon Jun 25 18:20:06 2018 +0200
@@ -1475,8 +1475,12 @@
         @param capabilities bitmaks with the client capabilities (integer)
         @param clientType type of the debug client (string)
         """
-        self.__debuggerInterfaceRegistry[clientType][0] = capabilities
-        self.clientCapabilities.emit(capabilities, clientType)
+        try:
+            self.__debuggerInterfaceRegistry[clientType][0] = capabilities
+            self.clientCapabilities.emit(capabilities, clientType)
+        except KeyError:
+            # ignore silently
+            pass
         
     def signalClientCompletionList(self, completionList, text):
         """

eric ide

mercurial