Closed alxbilger closed 1 year ago
The following triggers a KeyError exception because the key MazeScene is not in sys.modules: https://github.com/SofaDefrost/SofaGym/blob/70f2a5b34f012f2ba071eddc0cec7e71d30841e2/sofagym/envs/Maze/MazeScene.py
sys.modules
This PR checks if the key is in the dictionary first.
ok to me.
The following triggers a KeyError exception because the key MazeScene is not in
sys.modules
: https://github.com/SofaDefrost/SofaGym/blob/70f2a5b34f012f2ba071eddc0cec7e71d30841e2/sofagym/envs/Maze/MazeScene.pyThis PR checks if the key is in the dictionary first.