Skip to content

Commit 646bc29

Browse files
committed
Python: Modernizes query
1 parent 02ae0fb commit 646bc29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Exceptions/RaisingTuple.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import python
1313

1414
from Raise r, AstNode origin
15-
where r.getException().refersTo(_, theTupleType(), origin) and
15+
where r.getException().pointsTo(_, ClassValue::tuple(), origin) and
1616
major_version() = 2 /* Raising a tuple is a type error in Python 3, so is handled by the IllegalRaise query. */
1717

1818
select r, "Raising $@ will result in the first element (recursively) being raised and all other elements being discarded.", origin, "a tuple"

0 commit comments

Comments
 (0)