From f9f0d5a83eca658fccafae2f4346360d8374068c Mon Sep 17 00:00:00 2001 From: Wayne Bowie Date: Tue, 14 Jul 2020 12:23:09 -0500 Subject: [PATCH 1/2] No longer throws a KeyError when checking for non expensive scope --- python3/vimspector/variables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python3/vimspector/variables.py b/python3/vimspector/variables.py index 22444f9..3856347 100644 --- a/python3/vimspector/variables.py +++ b/python3/vimspector/variables.py @@ -221,7 +221,7 @@ class VariablesView( object ): new_scopes.append( scope ) - if not scope.scope[ 'expensive' ] and not scope.IsCollapsedByUser(): + if not scope.scope.get('expensive', '') and not scope.IsCollapsedByUser(): # Expand any non-expensive scope which is not manually collapsed scope.expanded = True From f81cc126c3dabd77e9b0e8e90d93722b02202d59 Mon Sep 17 00:00:00 2001 From: Wayne Bowie Date: Tue, 14 Jul 2020 14:04:31 -0500 Subject: [PATCH 2/2] Format fix --- python3/vimspector/variables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python3/vimspector/variables.py b/python3/vimspector/variables.py index 3856347..1cbf599 100644 --- a/python3/vimspector/variables.py +++ b/python3/vimspector/variables.py @@ -221,7 +221,7 @@ class VariablesView( object ): new_scopes.append( scope ) - if not scope.scope.get('expensive', '') and not scope.IsCollapsedByUser(): + if not scope.scope.get( 'expensive' ) and not scope.IsCollapsedByUser(): # Expand any non-expensive scope which is not manually collapsed scope.expanded = True