Tolerate buggy servers not supplying mandatory 'expensive' tag

Do not fail variable lookup if an element does not have the 'expensive' key
This commit is contained in:
jpfeiffer16 2019-06-21 21:44:14 -06:00 committed by Ben Jackson
commit 01c0f070ff

View file

@ -113,7 +113,7 @@ class VariablesView( object ):
old_scopes[ i ][ 'name' ] == scope[ 'name' ] ):
scope[ '_expanded' ] = old_scopes[ i ].get( '_expanded', False )
scope[ '_old_variables' ] = old_scopes[ i ].get( '_variables', [] )
elif not scope[ 'expensive' ]:
elif not scope.get( 'expensive' ):
# Expand any non-expensive scope unless manually collapsed
scope[ '_expanded' ] = True