Skip to content

Commit

Permalink
Reinit PostgresqlDatabase when _conn is called
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 31, 2020
1 parent 1ff3cf2 commit b0e5e6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/sdssdb/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b0e5e6a

Please sign in to comment.