Skip to content

Commit 7d7c5ee

Browse files
committed
[ot] python/qemu: cfggen.py: Fix unbound local in error case
Signed-off-by: Alex Jones <[email protected]>
1 parent b03205a commit 7d7c5ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/qemu/ot/otp/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def get_scrambling_key(self, name: str) -> str:
241241
except KeyError as exc:
242242
raise ValueError('No scrambling key constants found') from exc
243243
if len(key_values) <= idx:
244-
raise ValueError(f'No such key {name} in the key array') from exc
244+
raise ValueError(f'No such key {name} in the key array')
245245
return key_values[idx]
246246

247247
def get_partition_inv_defaults(self, partition: int) -> Optional[str]:

0 commit comments

Comments
 (0)