From f9f0d5a83eca658fccafae2f4346360d8374068c Mon Sep 17 00:00:00 2001 From: Wayne Bowie Date: Tue, 14 Jul 2020 12:23:09 -0500 Subject: [PATCH] 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