Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
vvaezian committed Nov 9, 2024
1 parent fbfba73 commit 1c719cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.4.4
### Changed
- Make sure the provided API key is correct.

## 3.4.3
### Changed
- PR [#56](https://github.com/vvaezian/metabase_api_python/pull/56)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT Licence (MIT)

Copyright (c) 2022 Vahid Vaezian
Copyright (c) 2024 Vahid Vaezian

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion metabase_api/metabase_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, domain, email=None, password=None, api_key=None, basic_auth=F
self.header = {"X-API-KEY": api_key}
# make sure the provided api key is correct
res = requests.get(self.domain + '/api/database/1', headers=self.header)
if res.status_code == 401:
if res.status_code == 401: # unauthenticated
raise ValueError('The provided API key is not correct.')

self.is_admin = is_admin
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="metabase-api",
version="3.4.3",
version="3.4.4",
author="Vahid Vaezian",
author_email="[email protected]",
description="A Python Wrapper for Metabase API",
Expand Down

0 comments on commit 1c719cf

Please sign in to comment.