From 71919a09263d84ba77c39c880b332075b1c2b6e3 Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Thu, 23 Oct 2025 10:29:24 +0100 Subject: [PATCH] [ot] python/qemu: cfggen.py: Fix unbound local in error case Signed-off-by: Alex Jones --- python/qemu/ot/otp/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/qemu/ot/otp/const.py b/python/qemu/ot/otp/const.py index 9117171c557a8..8f72f44d10f05 100644 --- a/python/qemu/ot/otp/const.py +++ b/python/qemu/ot/otp/const.py @@ -241,7 +241,7 @@ def get_scrambling_key(self, name: str) -> str: except KeyError as exc: raise ValueError('No scrambling key constants found') from exc if len(key_values) <= idx: - raise ValueError(f'No such key {name} in the key array') from exc + raise ValueError(f'No such key {name} in the key array') return key_values[idx] def get_partition_inv_defaults(self, partition: int) -> Optional[str]: