From d6735b5cf1ca15700ddf94d367c7681c04a84ae6 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 3 Jan 2026 11:26:33 -0700 Subject: [PATCH] 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 Signed-off-by: Simon Glass --- tools/buildman/boards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/buildman/boards.py b/tools/buildman/boards.py index 9dc5f9158d0..3b132691435 100644 --- a/tools/buildman/boards.py +++ b/tools/buildman/boards.py @@ -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'