Improve `check_exception_against_list` matching logic using regex · gitpython-developers/GitPython@799b9ca · GitHub
Skip to content

Commit 799b9ca

Browse files
committed
Improve check_exception_against_list matching logic using regex
Changes: - `match_exception_with_traceback` uses regular expressions for more flexible matching of file paths and line numbers. This allows for partial matches and more complex patterns. - Improve `check_exception_against_list` by delegating to `match_exception_with_traceback` for checking tracebacks against exception list entries. - `load_exception_list`: Remains largely unchanged, as it correctly parses the file and line number from each exception entry. However, we ensure the set consists of regex patterns to match against tracebacks.
1 parent 7de1556 commit 799b9ca

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

fuzzing/fuzz-targets/fuzz_submodule.py

Lines changed: 12 additions & 8 deletions

0 commit comments

Comments
 (0)