mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
test: update test to handle rate limit error
This commit is contained in:
parent
c7b6f661b3
commit
7934610f63
1 changed files with 2 additions and 0 deletions
|
|
@ -207,6 +207,8 @@ def test_image_generation_azure_dall_e_3():
|
|||
pass # OpenAI randomly raises these errors - skip when they occur
|
||||
except litellm.InternalServerError:
|
||||
pass
|
||||
except litellm.RateLimitError as e:
|
||||
pass
|
||||
except Exception as e:
|
||||
if "Your task failed as a result of our safety system." in str(e):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue