7844: Check that the mediapath is not set to None
This commit is contained in:
parent
ac62a978e0
commit
db352c5c4c
@ -252,7 +252,10 @@ def gramps_upgrade_17(self):
|
|||||||
# Modify Media
|
# Modify Media
|
||||||
# ---------------------------------
|
# ---------------------------------
|
||||||
# Add new checksum field.
|
# Add new checksum field.
|
||||||
base_path = self.metadata.get(b'mediapath', '')
|
base_path = self.metadata.get(b'mediapath')
|
||||||
|
if base_path is None:
|
||||||
|
# Check that the mediapath is not set to None (bug #7844).
|
||||||
|
base_path = ''
|
||||||
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