7080: Fix upgrade when media path does not exist
svn: r23264
This commit is contained in:
parent
aa265ae1e7
commit
fa7ee8bbb6
@ -173,7 +173,7 @@ def gramps_upgrade_17(self):
|
|||||||
# Modify Media
|
# Modify Media
|
||||||
# ---------------------------------
|
# ---------------------------------
|
||||||
# Add new checksum field.
|
# Add new checksum field.
|
||||||
base_path = self.metadata[b'mediapath']
|
base_path = self.metadata.get(b'mediapath', '')
|
||||||
for handle in self.media_map.keys():
|
for handle in self.media_map.keys():
|
||||||
media = self.media_map[handle]
|
media = self.media_map[handle]
|
||||||
new_media = list(media)
|
new_media = list(media)
|
||||||
|
Loading…
Reference in New Issue
Block a user