From fa7ee8bbb677c0cd160415244ac99438d4564b02 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 7 Oct 2013 17:12:58 +0000 Subject: [PATCH] 7080: Fix upgrade when media path does not exist svn: r23264 --- gramps/gen/db/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/db/upgrade.py b/gramps/gen/db/upgrade.py index 9ce9f2021..cab610443 100644 --- a/gramps/gen/db/upgrade.py +++ b/gramps/gen/db/upgrade.py @@ -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)