Skip to content
Snippets Groups Projects
Commit d9a43e1a authored by ashivani's avatar ashivani
Browse files

Added warning-distanc_map cannot be saved

parent 003ca057
No related branches found
No related tags found
No related merge requests found
......@@ -712,11 +712,9 @@ class RailEnv(Environment):
with open(filename, "wb") as file_out:
file_out.write(self.get_full_state_dist_msg())
else:
with open(filename, "wb") as file_out:
file_out.write(self.get_full_state_msg())
raise Exception("Unable to save distance map")
else:
with open(filename, "wb") as file_out:
file_out.write(self.get_full_state_msg())
raise Exception("Unable to save distance map")
else:
with open(filename,"wb") as file_out:
file_out.write(self.get_full_state_msg())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment