Skip to content

Commit

Permalink
Use logger.warning instead of warn
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Aug 29, 2023
1 parent 4543b8e commit 8e33e78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ixmp4/conf/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ def load_credentials(self):
try:
self.default_credentials = self.credentials.get("default")
except KeyError:
logger.warn("No default credentials provided.")
logger.warning("No default credentials provided.")

if self.default_credentials is not None:
username, password = self.default_credentials
try:
self.default_auth = ManagerAuth(username, password, self.manager_url)
return
except InvalidCredentials:
logger.warn(
logger.warning(
"Failure while requesting management service authentication: Invalid credentials."
)
except ConnectError:
logger.warn(f"Unable to connect to {self.manager_url}.")
logger.warning(f"Unable to connect to {self.manager_url}.")

self.default_auth = AnonymousAuth()

Expand Down

0 comments on commit 8e33e78

Please sign in to comment.