7080: Fix upgrade when media path does not exist

svn: r23264
This commit is contained in:
Nick Hall 2013-10-07 17:12:58 +00:00
parent aa265ae1e7
commit fa7ee8bbb6

View File

@ -173,7 +173,7 @@ def gramps_upgrade_17(self):
# Modify Media
# ---------------------------------
# Add new checksum field.
base_path = self.metadata[b'mediapath']
base_path = self.metadata.get(b'mediapath', '')
for handle in self.media_map.keys():
media = self.media_map[handle]
new_media = list(media)