Skip to content

Commit

Permalink
Return empty type for DAPGrouper instances. Fixes #237
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed May 14, 2020
1 parent 6481979 commit 7841d25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ def get_var_data(self, fmt=None):
elif name in (TOO_LARGE_ATTR, GENERATED_LEN_ATTR_NAME):
attributes.append('readOnly')

try:
if self.value.__class__ == DAPGrouper:
type_name = ''
except:
pass # Ignore errors accessing __class__.

var_data = {
'name': name,
'value': value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,7 @@ def _clear_groups(variables):
for v in variables:
if v['name'] in DAPGrouper.SCOPES_SORTED:
groups_found.add(v['name'])
assert not v['type']
continue

else:
Expand Down

0 comments on commit 7841d25

Please sign in to comment.