Skip to content

Commit

Permalink
Do not getattr from self._config
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed May 12, 2020
1 parent 2402cfd commit 3002fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sdssdb/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def connect(self, dbname=None, silent_on_fail=False, **connection_params):
if item in connection_params:
db_configuration[item] = connection_params[item]
else:
profile_value = self._config[self.profile].get(item, None)
profile_value = self._config.get(item, None)
db_configuration[item] = profile_value

dbname = dbname or self.dbname
Expand Down

0 comments on commit 3002fc4

Please sign in to comment.