summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorAlison Schofield <alison.schofield@intel.com>2026-08-07 15:10:03 -0700
committerJonathan Corbet <corbet@lwn.net>2026-08-11 10:36:28 -0600
commit02299dcd203c55d12238c95f1d028f06b90f1c1e (patch)
tree929068e34cdba65e8246d2a8f6ee0571d32245d3 /tools/lib/python/kdoc
parent22a42ee5dad307d4236839e75929c86346cf42e3 (diff)
docs: python: abi_regex: catch the right exception for a bad regex
While validating recent CXL ABI documentation updates with get_abi.py, the 'undefined' mode was found to abort instead of reporting undocumented ABI entries. Older Python releases raise re.error, while newer releases expose re.PatternError. Catching the compatible re.error exception handles both cases. Use re.error so the scan continues and reports the remaining results. Signed-off-by: Alison Schofield <alison.schofield@intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <9f6fa7a9aa6ba9a26b484b911976713356b3fd44.1786139549.git.alison.schofield@intel.com>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions