Skip to content

Commit 6812900

Browse files
authored
Merge pull request #228 from Vonage/bugfix-messages-api
Bugfix in messages.py
2 parents c577aa7 + c75fe04 commit 6812900

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
[bumpversion]
2-
current_version = 3.0.1
2+
current_version = 3.0.2
33
commit = True
44
tag = False
55

66
[bumpversion:file:src/vonage/__init__.py]
77

88
[bumpversion:file:setup.py]
9-
10-
[bumpversion:file:docs/conf.py]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,4 @@ ENV*
109109
.idea
110110
.pypirc
111111
.pytest_cache
112+
html/

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 3.0.2
2+
- Bugfix in `messages.py` where authentication method was not being checked for correctly, throwing an error when using header auth.
3+
14
# 3.0.1
25
- Fixed bug where a JWT was created globally and could expire. Now a new JWT is generated when a request is made.
36
- Fixed bug where timeout was not passed to session object.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setup(
1313
name="vonage",
14-
version="3.0.1",
14+
version="3.0.2",
1515
description="Vonage Server SDK for Python",
1616
long_description=long_description,
1717
long_description_content_type="text/markdown",

src/vonage/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .client import *
22

3-
__version__ = "3.0.1"
3+
__version__ = "3.0.2"

src/vonage/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def __init__(self, client):
1616
self._client = client
1717
self._auth_type = 'jwt'
1818

19-
def send_message(self, params: dict):
19+
def send_message(self, params: dict):
2020
self.validate_send_message_input(params)
2121

22-
if self._client._application_id is None:
22+
if not hasattr(self._client, '_application_id'):
2323
self._auth_type='header'
2424
return self._client.post(
2525
self._client.api_host(),

0 commit comments

Comments
 (0)