test(test_router.py): handle azure api instability

This commit is contained in:
Krrish Dholakia 2024-07-25 19:54:40 -07:00
parent a2fd8459fc
commit 826bb125e8

View file

@ -1117,6 +1117,8 @@ async def test_aimg_gen_on_router():
assert len(response.data) > 0 assert len(response.data) > 0
router.reset() router.reset()
except litellm.InternalServerError as e:
pass
except Exception as e: except Exception as e:
if "Your task failed as a result of our safety system." in str(e): if "Your task failed as a result of our safety system." in str(e):
pass pass