Skip to content

Commit

Permalink
fix a bug (variable in error message not initialized)
Browse files Browse the repository at this point in the history
Signed-off-by: DONNOT Benjamin <[email protected]>
  • Loading branch information
BDonnot committed Nov 22, 2024
1 parent d0eacac commit 37029ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grid2op/Environment/multiMixEnv.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def __init__(
# TODO reuse same observation_space and action_space in all the envs maybe ?
self.multi_env_name.path_cls = type(env_for_init)._PATH_GRID_CLASSES
self.multi_env_name.name_env = env_for_init.env_name

i = -1
try:
for i, mix_name in enumerate(li_mix_nms[1:]):
mix_path = os.path.join(envs_dir, mix_name)
Expand Down

0 comments on commit 37029ad

Please sign in to comment.