Skip to content

Commit 3aa9304

Browse files
committed
also accept other 2xx codes
1 parent 71beeac commit 3aa9304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def zoom_headers(duration: int=100) -> dict:
2525
def zoom_request(method: callable, *args, **kwargs):
2626
"""A minimal wrapper around requests for querying zoom API with error handling"""
2727
response = method(*args, **kwargs, headers=zoom_headers())
28-
if response.status_code != 204:
28+
if response.status_code > 299:
2929
raise RuntimeError(response.content.decode())
3030

3131
if response.content:

0 commit comments

Comments
 (0)