MapHistory: remember filename if the file does not exist

This commit is contained in:
Laura Klünder 2017-11-03 12:30:22 +01:00
parent 5ee98ccdc4
commit 75682dda97

View file

@ -53,7 +53,7 @@ class MapHistory:
except (FileNotFoundError, struct.error):
if default_update is None:
default_update = MapUpdate.last_update()
new_empty = cls(updates=[default_update])
new_empty = cls(updates=[default_update], filename=filename)
new_empty.save(filename)
return new_empty