File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ Fix error with bad len() values in variable explorer
Original file line number Diff line number Diff line change 9
9
10
10
# Find shape and count if available
11
11
if (hasattr (_VSCODE_evalResult , 'shape' )):
12
- _VSCODE_targetVariable ['shape' ] = str (_VSCODE_evalResult .shape )
12
+ try :
13
+ _VSCODE_targetVariable ['shape' ] = str (_VSCODE_evalResult .shape )
14
+ except TypeError :
15
+ pass
13
16
14
17
if (hasattr (_VSCODE_evalResult , '__len__' )):
15
- _VSCODE_targetVariable ['count' ] = len (_VSCODE_evalResult )
18
+ try :
19
+ _VSCODE_targetVariable ['count' ] = len (_VSCODE_evalResult )
20
+ except TypeError :
21
+ pass
16
22
17
23
# Get the string of the eval result, truncate it as it could be far too long
18
24
_VSCODE_targetValue = str (_VSCODE_evalResult )
You can’t perform that action at this time.
0 commit comments