diff --git a/gramps/gen/db/generic.py b/gramps/gen/db/generic.py index 89caa5710..17f658e74 100644 --- a/gramps/gen/db/generic.py +++ b/gramps/gen/db/generic.py @@ -1109,7 +1109,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback): return gid def get_mediapath(self): - return self.get_metadata("media-path", "") + return self.get_metadata("media-path", None) def set_mediapath(self, mediapath): return self.set_metadata("media-path", mediapath)