Skip to content

Commit b33b222

Browse files
committed
Python: Modernizes query
1 parent 85f5ad2 commit b33b222

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)