Skip to content

Commit

Permalink
Raise error if invalid metabase credentials are used
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Oct 3, 2024
1 parent 13927ec commit bfacf0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot/exts/moderation/metabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ async def refresh_session(self) -> None:
"password": MetabaseConfig.password
}
async with self.bot.http_session.post(f"{MetabaseConfig.base_url}/api/session", json=data) as resp:
resp.raise_for_status()
json_data = await resp.json()
self.session_token = json_data.get("id")

Expand Down

0 comments on commit bfacf0d

Please sign in to comment.