From c9eee3b471941fe694d26940b075fe14527465f0 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 25 Sep 2017 23:00:10 +0100 Subject: [PATCH] Ignore empty connection settings --- gramps/plugins/db/dbapi/postgresql.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/db/dbapi/postgresql.py b/gramps/plugins/db/dbapi/postgresql.py index fea696feb..eb42a2928 100644 --- a/gramps/plugins/db/dbapi/postgresql.py +++ b/gramps/plugins/db/dbapi/postgresql.py @@ -90,7 +90,9 @@ class PostgreSQL(DBAPI): dbkwargs = {} for key in config_mgr.get_section_settings('database'): - dbkwargs[key] = config_mgr.get('database.' + key) + value = config_mgr.get('database.' + key) + if value: + dbkwargs[key] = value try: self.dbapi = Connection(**dbkwargs)