Skip to content

Commit ff1b448

Browse files
fix: property key not in rules
1 parent d8df796 commit ff1b448

File tree

1 file changed

+2
-0
lines changed
  • balrog/environments/babaisai

1 file changed

+2
-0
lines changed

balrog/environments/babaisai/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ def steps(v):
117117

118118
you = None
119119
for rule in self.env.grid._ruleset["_rule_"]:
120+
if "property" not in rule: # BabaIsAI bug fix
121+
continue
120122
named_property = name_mapping[rule["property"]]
121123
if named_property == "you":
122124
you = rule["object"]

0 commit comments

Comments
 (0)