Skip to content

Commit b51e2a9

Browse files
authored
Merge pull request github#2977 from BekaValentine/python-objectapi-to-valueapi-catchingbaseexception
Python: ObjectAPI to ValueAPI: CatchingBaseException
2 parents 9fae2fa + b33b222 commit b51e2a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Exceptions/CatchingBaseException.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ predicate doesnt_reraise(ExceptStmt ex) {
1919
}
2020

2121
predicate catches_base_exception(ExceptStmt ex) {
22-
ex.getType().refersTo(theBaseExceptionType())
22+
ex.getType().pointsTo(ClassValue::baseException())
2323
or
2424
not exists(ex.getType())
2525
}

0 commit comments

Comments
 (0)