Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 400a0f5

Browse files
committed
Python: Adds preliminary modernization
1 parent 02ae0fb commit 400a0f5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

python/ql/src/Exceptions/IllegalExceptionHandlerType.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313

1414
import python
1515

16-
from ExceptFlowNode ex, Object t, ClassObject c, ControlFlowNode origin, string what
16+
from ExceptFlowNode ex, Value t, ClassValue c, ControlFlowNode origin, string what
1717
where ex.handledException(t, c, origin) and
1818
(
19-
exists(ClassObject x | x = t |
19+
exists(ClassValue x | x = t |
2020
not x.isLegalExceptionType() and
21-
not x.failedInference() and
21+
not x.failedInference(_) and
2222
what = "class '" + x.getName() + "'"
2323
)
2424
or
25-
not t instanceof ClassObject and
25+
not t instanceof ClassValue and
2626
what = "instance of '" + c.getName() + "'"
2727
)
2828

0 commit comments

Comments
 (0)