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,6 +2291,7 @@ async def startup_event():
|
||||||
)
|
)
|
||||||
|
|
||||||
### CHECK IF VIEW EXISTS ###
|
### CHECK IF VIEW EXISTS ###
|
||||||
|
if prisma_client is not None:
|
||||||
create_view_response = await prisma_client.check_view_exists()
|
create_view_response = await prisma_client.check_view_exists()
|
||||||
print(f"create_view_response: {create_view_response}") # noqa
|
print(f"create_view_response: {create_view_response}") # noqa
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue