lab icon indicating copy to clipboard operation
lab copied to clipboard

Raise more meaningful error message when environment is not running anymore

Open bodgergely opened this issue 8 years ago • 2 comments

Upon environment timeout python client will only receive the error message "Environment in wrong status for call to observations()". Might be good to provide more information why the environment is not running anymore (due to timeout etc.)

if (!is_running(self)) {
  PyErr_SetString(PyExc_RuntimeError,
  "Environment in wrong status for call to observations()");
  return NULL;
}

bodgergely avatar Jun 12 '17 22:06 bodgergely

Why are you calling observations()? Shouldn't you have noticed that the environment has timed out the last time you applied actions?

tkoeppe avatar Jan 25 '18 13:01 tkoeppe

where exactly this piece of code is written ?

shristi428 avatar Feb 23 '20 10:02 shristi428