Handle JSONDecodeError in is_server_or_retry_error function (#133)
feat: handle JSONDecodeError in is_server_or_retry_error function
This commit is contained in:
parent
69964d302a
commit
6d065d363a
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
def is_server_or_retry_error(exception):
|
||||
if isinstance(exception, RateLimitError):
|
||||
if isinstance(exception, (RateLimitError, json.decoder.JSONDecodeError)):
|
||||
return True
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue