Skip to content

Commit dc5afe7

Browse files
committed
Fix exception causes in game_controller.py
1 parent 65d67f3 commit dc5afe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/tests/utils/game_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ def rotation_velocity(self):
218218
def _observations(self):
219219
try:
220220
return self._env.observations()
221-
except RuntimeError:
221+
except RuntimeError as e:
222222
if self._env.is_running():
223223
raise
224224
else:
225-
raise EpisodeFinishedError()
225+
raise EpisodeFinishedError from e
226226

227227
def _get_empty_actions(self):
228228
return np.zeros([len(self._action_index)], dtype=np.intc)

0 commit comments

Comments
 (0)