From bd00f36ff10f9bd3c27ce782726005042434301e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 4 May 2016 10:30:17 -0400 Subject: [PATCH] 9433: empty media path must be interpreted as /home/dblank in DB-API --- gramps/gen/db/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)