Skip to content

Commit

Permalink
Raise act exceptions in training mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fdraxler committed Mar 24, 2021
1 parent 2d49d83 commit df2c306
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ def wait_for_act(self):
self.last_action = action
return action, think_time
except BaseException:
if self.train:
raise
return 'WAIT', float("inf")

def round_ended(self):
Expand Down

0 comments on commit df2c306

Please sign in to comment.