8000 Fixed language settings in the Say verb. Updated version number · bleepbloop/twilio-python@81c6e10 · GitHub
[go: up one dir, main page]

Skip to content

Commit 81c6e10

Browse files
committed
Fixed language settings in the Say verb. Updated version number
1 parent ca5ac84 commit 81c6e10

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
setup(
33
name = "twilio",
44
py_modules = ['twilio'],
5-
version = "2.0.6",
5+
version = "2.0.7",
66
description = "Twilio API client and TwiML generator",
77
author = "Twilio",
88
author_email = "help@twilio.com",

twilio.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
OTHER DEALINGS IN THE SOFTWARE.
2424
"""
2525

26-
__VERSION__ = "2.0.6"
26+
__VERSION__ = "2.0.7"
2727

2828
import urllib, urllib2, base64, hmac
2929
from hashlib import sha1
@@ -267,7 +267,8 @@ def __init__(self, text, voice=None, language=None, loop=None, **kwargs):
267267
if voice and (voice != self.MAN and 6696 voice != self.WOMAN):
268268
raise TwilioException( \
269269
"Invalid Say voice parameter, must be 'man' or 'woman'")
270-
if voice and (voice != self.MAN and voice != self.WOMAN):
270+
if language and (language != self.ENGLISH and language != self.SPANISH
271+
and language != self.FRENCH and language != self.GERMAN):
271272
raise TwilioException( \
272273
"Invalid Say language parameter, must be " + \
273274
"'en', 'es', 'fr', or 'de'")

0 commit comments

Comments
 (0)
0