CodeQL library for Python
codeql/python-all 7.0.3 (changelog, source)
Search

Predicate SsaSource::exception_capture

Holds if v is defined by assignment of the captured exception.

Import path

import semmle.python.essa.SsaDefinitions
predicate exception_capture(Variable v, NameNode defn)