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 99
1010# Find shape and count if available 
1111if  (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 
1316
1417if  (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 
1622
1723# Get the string of the eval result, truncate it as it could be far too long 
1824_VSCODE_targetValue  =  str (_VSCODE_evalResult )
                         You can’t perform that action at this time. 
           
                  
0 commit comments