Skip to content

Commit e444fb8

Browse files
authored
Merge pull request github#2818 from BekaValentine/objectapi-to-valueapi-hashedbutnohash
Python: ObjectAPI to ValueAPI: HashedButNoHash
2 parents ee5cf95 + c36c0ae commit e444fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Expressions/HashedButNoHash.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ predicate is_unhashable(ControlFlowNode f, ClassValue cls, ControlFlowNode origi
6969
predicate typeerror_is_caught(ControlFlowNode f) {
7070
exists (Try try |
7171
try.getBody().contains(f.getNode()) and
72-
try.getAHandler().getType().refersTo(theTypeErrorType()))
72+
try.getAHandler().getType().pointsTo(ClassValue::typeError()))
7373
}
7474

7575
from ControlFlowNode f, ClassValue c, ControlFlowNode origin

0 commit comments

Comments
 (0)