diff --git a/flatland/envs/rail_env.py b/flatland/envs/rail_env.py index 405c6edd0916d9c46a1c8e06196ea57ad6df70af..76ac04f15aec26e84c6d2b1df79f3a70b27a51f9 100644 --- a/flatland/envs/rail_env.py +++ b/flatland/envs/rail_env.py @@ -712,9 +712,11 @@ class RailEnv(Environment): with open(filename, "wb") as file_out: file_out.write(self.get_full_state_dist_msg()) else: - raise Exception("Unable to save distance map") + print("[WARNING] Unable to save the distance map for this environment, as none was found !") + else: - raise Exception("Unable to save distance map") + print("[WARNING] Unable to save the distance map for this environment, as none was found !") + else: with open(filename,"wb") as file_out: file_out.write(self.get_full_state_msg()) diff --git a/notebooks/simple_example1_env_from_tuple.ipynb b/notebooks/simple_example1_env_from_tuple.ipynb index 0fcfe26325e5778cbbfdf66591346972edb2406d..2d13585156b447fe4f9eed07834b3dc04ccf84d6 100644 --- a/notebooks/simple_example1_env_from_tuple.ipynb +++ b/notebooks/simple_example1_env_from_tuple.ipynb @@ -83,7 +83,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.8" + "version": "3.7.3" }, "latex_envs": { "LaTeX_envs_menu_present": true,