forked from phoenix/litellm-mirror
fix - deal with case when check view exists returns None (#5740)
This commit is contained in:
parent
815d46f9e1
commit
535228159b
1 changed files with 5 additions and 0 deletions
|
@ -991,6 +991,11 @@ class PrismaClient:
|
|||
"""
|
||||
)
|
||||
expected_total_views = len(expected_views)
|
||||
|
||||
# Deal with case when ret is None
|
||||
if ret is None:
|
||||
ret = [{"view_count": 0, "view_names": []}]
|
||||
|
||||
if ret[0]["view_count"] == expected_total_views:
|
||||
verbose_proxy_logger.info("All necessary views exist!")
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue