From b0e5e6af18df6c1fcc5316ee990eb396823345e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Fri, 31 Jan 2020 02:58:19 +0000 Subject: [PATCH] Reinit PostgresqlDatabase when _conn is called --- python/sdssdb/connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/sdssdb/connection.py b/python/sdssdb/connection.py index beb3b5d4..ddcd8cad 100644 --- a/python/sdssdb/connection.py +++ b/python/sdssdb/connection.py @@ -313,7 +313,8 @@ def connection_params(self): def _conn(self, dbname, silent_on_fail=False, **params): """Connects to the DB and tests the connection.""" - + + PostgresqlDatabase.__init__(self, None) PostgresqlDatabase.init(self, dbname, **params) try: