Skip to content

Commit f25428b

Browse files
committed
Python: ObjectAPI to ValueAPI: WrongNumberArgumentsInCall: Exceptions.qll: Fixes incorrect implementation of localRaisedType
1 parent c6fbbb1 commit f25428b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/ql/src/semmle/python/types/Exceptions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class RaisingNode extends ControlFlowNode {
9797
(
9898
exists(ControlFlowNode ex |
9999
ex = this.getExceptionNode() and
100-
(ex.pointsTo(result) or ex.pointsTo(_, result, _))
100+
(ex.pointsTo(result) or ex.pointsTo().getClass() = result)
101101
)
102102
or
103103
this.getNode() instanceof ImportExpr and result = ClassValue::importError()

0 commit comments

Comments
 (0)