Skip to content

Commit c381597

Browse files
committed
Checking in
1 parent 54c4974 commit c381597

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ def read_requirements(file):
4949
test_suite='tests',
5050
tests_require=test_requirements,
5151
url='https://github.com/jordan.cde/vapi_python',
52-
version='0.1.7',
52+
version='0.1.8',
5353
zip_safe=False,
5454
)

vapi_python/vapi_python.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ def create_web_call(api_url, api_key, assistant):
1919
web_call_url = data.get('webCallUrl')
2020
return call_id, web_call_url
2121
else:
22-
print(f"Error: {data['message']}")
23-
return None
22+
raise Exception(f"Error: {data['message']}")
2423

2524

2625
class Vapi:
@@ -38,11 +37,11 @@ def start(self, *, assistant_id=None, assistant=None):
3837
call_id, web_call_url = create_web_call(
3938
self.api_url, self.api_key, assistant)
4039

41-
print('Joining call... ' + call_id)
42-
4340
if not web_call_url:
4441
raise Exception("Error: Unable to create call.")
4542

43+
print('Joining call... ' + call_id)
44+
4645
self.__client = DailyCall()
4746
self.__client.join(web_call_url)
4847

0 commit comments

Comments
 (0)