forked from phoenix/litellm-mirror
fix(proxy_server.py): check if prisma client is initialized before checking if view exists
This commit is contained in:
parent
1447621128
commit
1815ee16d4
1 changed files with 3 additions and 2 deletions
|
@ -2291,8 +2291,9 @@ async def startup_event():
|
|||
)
|
||||
|
||||
### CHECK IF VIEW EXISTS ###
|
||||
create_view_response = await prisma_client.check_view_exists()
|
||||
print(f"create_view_response: {create_view_response}") # noqa
|
||||
if prisma_client is not None:
|
||||
create_view_response = await prisma_client.check_view_exists()
|
||||
print(f"create_view_response: {create_view_response}") # noqa
|
||||
|
||||
### START BUDGET SCHEDULER ###
|
||||
if prisma_client is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue