Fixed some little issues.

Tue, 27 Jul 2021 19:22:37 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 27 Jul 2021 19:22:37 +0200
changeset 8483
11469e50910f
parent 8474
4b9f6bd71a99
child 8484
630d4b624847

Fixed some little issues.
(grafted from 903b7d3b58afb0c6194fc522b5ded8cca67c7700)

eric6/DebugClients/Python/DebugVariables.py file | annotate | diff | comparison | revisions
eric6/Debugger/VariablesViewer.py file | annotate | diff | comparison | revisions
--- a/eric6/DebugClients/Python/DebugVariables.py	Wed Jul 21 17:52:39 2021 +0200
+++ b/eric6/DebugClients/Python/DebugVariables.py	Tue Jul 27 19:22:37 2021 +0200
@@ -208,7 +208,7 @@
         try:
             return var[int(attribute)]
         except Exception:
-            return getattr(var, attribute, None)
+            return getattr(var, str(attribute), None)
     
     def getDictionary(self, var):
         """
--- a/eric6/Debugger/VariablesViewer.py	Wed Jul 21 17:52:39 2021 +0200
+++ b/eric6/Debugger/VariablesViewer.py	Tue Jul 27 19:22:37 2021 +0200
@@ -192,6 +192,7 @@
             else:
                 dvalue = VariableItem.unsized
             self.hasChildren = True
+        
         elif dtype in VariableItem.arrayTypes:
             self.childCount = int(dvalue)
             dvalue = VariableItem.noOfItemsStr.format(dvalue)

eric ide

mercurial