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)