buildman: Use specific exception type in _fixup_arch()

Change bare except to catch AttributeError specifically, which occurs
when the ARCH_RV32I symbol is not found and get() returns None

Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Simon Glass
2026-01-03 11:26:33 -07:00
committed by Simon Glass
parent 7250a9bc97
commit d6735b5cf1

View File

@@ -322,7 +322,7 @@ class KconfigScanner:
if params['arch'] == 'riscv':
try:
value = self._conf.syms.get('ARCH_RV32I').str_value
except:
except AttributeError:
value = ''
if value == 'y':
params['arch'] = 'riscv32'