Skip to content

Commit

Permalink
feat: handle non-200 response in fetch_metabase.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonylucas74 committed Jul 22, 2024
1 parent 6a3894e commit 775a3d0
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 775a3d0

Please sign in to comment.