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 5814798 commit 4cb111aCopy full SHA for 4cb111a
mvd.py
@@ -469,9 +469,9 @@ def translate(v):
469
return getattr(operator, v.lower() + "_")
470
else:
471
if v.b == "Value":
472
- return d[v.a] == parse_mvdxml_token(v.c)
+ return d.get(v.a) == parse_mvdxml_token(v.c)
473
elif v.b == "Type":
474
- return d[v.a].is_a(parse_mvdxml_token(v.c))
+ return d.get(v.a) and d.get(v.a).is_a(parse_mvdxml_token(v.c))
475
476
r2 = list(map(translate, r))
477
yield reduce(operation_reduce, r2)
0 commit comments