Skip to content

Commit e14987f

Browse files
committed
Bug fix - don't clear agents marked as None.
1 parent 8935aba commit e14987f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kaggle_environments/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,8 @@ def act(none_action=None):
574574

575575
def destroy():
576576
for a in agents:
577-
a.destroy()
577+
if a != None:
578+
a.destroy()
578579

579580
return structify({"act": act, "destroy": destroy})
580581

0 commit comments

Comments
 (0)