diff --git a/stm32data/__main__.py b/stm32data/__main__.py index 76f8fa9..9cd4d81 100755 --- a/stm32data/__main__.py +++ b/stm32data/__main__.py @@ -1268,7 +1268,7 @@ def parse_rcc_regs(): 'field': field['name'], } } - if rstr := y[key.replace('ENR', 'RSTR')]: + if rstr := y.get(key.replace('ENR', 'RSTR')): if field := next(filter(lambda f: f['name'] == f'{peri}RST', rstr['fields']), None): res['reset'] = { 'register': reg.replace('ENR', 'RSTR'),