Commit ceeb965b authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix checks

parent a33a2d07
......@@ -1075,7 +1075,7 @@ def fix_expression_types(expr, context): # type: -> [warnings]
# if fd_expr.exprType == UNKNOWN_TYPE:
try:
expected_type = asn_type.Children.get(
field.replace('_', '-')).type
field.lower().replace('_', '-')).type
except AttributeError:
raise TypeError('Field not found: ' + field)
check_expr = ogAST.ExprAssign()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment