Merge pull request #2977 from BekaValentine/python-objectapi-to-valueapi-catchingbaseexception

Python: ObjectAPI to ValueAPI: CatchingBaseException
This commit is contained in:
Taus
2020-03-09 22:54:50 +01:00
committed by GitHub

View File

@@ -19,7 +19,7 @@ predicate doesnt_reraise(ExceptStmt ex) {
}
predicate catches_base_exception(ExceptStmt ex) {
ex.getType().refersTo(theBaseExceptionType())
ex.getType().pointsTo(ClassValue::baseException())
or
not exists(ex.getType())
}