From 193f082f30499837cb7028ac695a8813694d423e Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Fri, 15 Sep 2017 21:04:30 -0700 Subject: [PATCH] 3.4 database conversion fails Fixes #10189, #10064 --- gramps/plugins/db/bsddb/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/db/bsddb/upgrade.py b/gramps/plugins/db/bsddb/upgrade.py index 2f7387005..48fd189dd 100644 --- a/gramps/plugins/db/bsddb/upgrade.py +++ b/gramps/plugins/db/bsddb/upgrade.py @@ -83,7 +83,7 @@ def gramps_upgrade_19(self): """ default_handle = self.metadata.get(b'default') with BSDDBTxn(self.env, self.metadata) as txn: - if default_handle is not None: + if isinstance(default_handle, bytes): default_handle = default_handle.decode('utf-8') txn.put(b'default', default_handle) txn.put(b'version', 19)