Skip to content

Commit

Permalink
Merge branch 'hotfix/0.5.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaranmccormick committed Apr 7, 2020
2 parents 3efa630 + ead1884 commit 25defd3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### Future

### 0.5.1

- Bug fix for issue [#11](https://github.com/ciaranmccormick/hootsweet/issues/11)

### 0.5.0

Expand Down
2 changes: 1 addition & 1 deletion hootsweet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from hootsweet.api import HootSweet

__version__ = "0.5.0"
__version__ = "0.5.1"

__all__ = ["HootSweet"]
5 changes: 4 additions & 1 deletion hootsweet/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ def _make_request(self, resource, *args, **kwargs) -> Dict[str, Any]:
if not response.status_code == 200:
raise detect_and_raise_error(response)
else:
return response.json()["data"]
if method == "DELETE":
return {}
else:
return response.json()["data"]

def get_me(self) -> Dict:
""" Retrieves authenticated member"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hootsweet"
version = "0.5.0"
version = "0.5.1"
description = "A python library for the HootSuite REST API."
authors = ["Ciaran McCormick <ciaran@ciaranmccormick.com>"]
readme = "README.md"
Expand Down

0 comments on commit 25defd3

Please sign in to comment.