mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-18 09:45:23 +00:00
Merge 0402fffff7 into e16d79d635
This commit is contained in:
commit
d309116f16
2 changed files with 3 additions and 0 deletions
|
|
@ -204,6 +204,8 @@ class PrismaDBExceptionHandler:
|
|||
),
|
||||
):
|
||||
return True
|
||||
if PrismaDBExceptionHandler.is_prisma_engine_internal_error(e):
|
||||
return True
|
||||
if PrismaDBExceptionHandler.is_database_capacity_error(e):
|
||||
return False
|
||||
if isinstance(e, _exception_types(prisma.errors.PrismaError)):
|
||||
|
|
|
|||
|
|
@ -195,6 +195,7 @@ def test_is_database_service_unavailable_error_prisma_engine_malformed_payload()
|
|||
|
||||
assert "no attribute 'get'" in str(exc_info.value)
|
||||
assert PrismaDBExceptionHandler.is_database_service_unavailable_error(exc_info.value) is True
|
||||
assert PrismaDBExceptionHandler.is_database_transport_error(exc_info.value) is True
|
||||
|
||||
|
||||
def test_is_prisma_engine_internal_error_excludes_application_attributeerror():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue