diff --git a/gramps/cli/clidbman.py b/gramps/cli/clidbman.py index 5bb87e632..8bdce7bdb 100644 --- a/gramps/cli/clidbman.py +++ b/gramps/cli/clidbman.py @@ -159,6 +159,7 @@ class CLIDbManager(object): database = self.dbstate.make_database(dbid) database.load(dirpath, None) retval = database.get_summary() + database.close() except Exception as msg: retval = {"Unavailable": str(msg)[:74] + "..."} retval.update({