Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use logger.warning instead of warn #8

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading