Skip to content
Prev Previous commit
Next Next commit
Add from err because ruff thinks it's better
  • Loading branch information
encukou committed Sep 12, 2025
commit 897a328a2473c9306467dffe2cfc5f360ac76b7b
4 changes: 2 additions & 2 deletions Doc/tools/extensions/c_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ def run(self):

try:
record = stable_abi_data[name]
except LookupError:
except LookupError as err:
raise LookupError(
f"{name} is not part of stable ABI. "
+ "Document it as `c:macro::` rather than "
+ "`corresponding-type-slot::`."
)
) from err

annotation = _stable_abi_annotation(record, is_corresponding_slot=True)

Expand Down
Loading