eric6/DebugClients/Python/DebugClientBase.py

changeset 8243
cc717c2ae956
parent 8240
93b8a353c4bf
child 8257
28146736bbfc
diff -r aa713ac50c0d -r cc717c2ae956 eric6/DebugClients/Python/DebugClientBase.py
--- a/eric6/DebugClients/Python/DebugClientBase.py	Thu Apr 15 16:52:05 2021 +0200
+++ b/eric6/DebugClients/Python/DebugClientBase.py	Thu Apr 15 18:11:24 2021 +0200
@@ -1942,12 +1942,10 @@
             pos -= 1
         
         # Get local and global completions
-        try:
+        with contextlib.suppress(AttributeError):
             localdict = self.currentThread.getFrameLocals(self.framenr)
             localCompleter = Completer(localdict).complete
             self.__getCompletionList(text, localCompleter, completions)
-        except AttributeError:
-            pass
         
         cf = self.currentThread.getCurrentFrame()
         frmnr = self.framenr

eric ide

mercurial