Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit 813708e

Browse files
committed
Fix edge-case where register has empty field in fields
1 parent 3c672d8 commit 813708e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def import_svd(bv: BinaryView):
6363
if show_comments:
6464
bv.set_comment_at(reg_addr, reg_desc.splitlines()[0])
6565

66-
if 'fields' not in register:
66+
if 'fields' not in register or 'field' not in register['fields']:
6767
continue
6868

6969
reg_fields = register['fields']['field']

0 commit comments

Comments
 (0)