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:
parent
2f51c9535b
commit
01c0f070ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue