We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88daf65 commit 3e36c67Copy full SHA for 3e36c67
python/ql/src/Exceptions/EmptyExcept.ql
@@ -64,9 +64,9 @@ predicate subscript(Stmt s) {
64
s.(Delete).getATarget() instanceof Subscript
65
}
66
67
-predicate encode_decode(Expr ex, ClassValue type) {
+predicate encode_decode(Call ex, ClassValue type) {
68
exists(string name |
69
- ex.(Call).getFunc().(Attribute).getName() = name |
+ ex.getFunc().(Attribute).getName() = name |
70
name = "encode" and type = ClassValue::unicodeEncodeError()
71
or
72
name = "decode" and type = ClassValue::unicodeDecodeError()
0 commit comments