Skip to content

Commit

Permalink
feat: handle non-200 response in fetch_metabase.py (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonylucas74 authored Jul 22, 2024
1 parent 6a3894e commit 180f579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/apps/core/management/commands/fetch_metabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_databases(self, token: str):
response = requests.get(BASE_URL + "/api/database", headers=headers)

if response.status_code != 200:
raise Exception(response.text)
raise Exception(response.text + f" for {METABASE_USER}")

return response.json()["data"]

Expand Down

0 comments on commit 180f579

Please sign in to comment.