Skip to content

Commit 897a328

Browse files
committed
Add from err because ruff thinks it's better
1 parent 9dd5dd5 commit 897a328

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tools/extensions/c_annotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,12 @@ def run(self):
311311

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

321321
annotation = _stable_abi_annotation(record, is_corresponding_slot=True)
322322

0 commit comments

Comments
 (0)