From e33c6d50a166025fc8bb245effb7bc548617faf2 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 5 Nov 2024 14:51:01 -0800 Subject: [PATCH] fix check for db is connected --- litellm/proxy/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 44243cab0b9..59d4d72c33d 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -2289,7 +2289,8 @@ class PrismaClient: verbose_proxy_logger.debug( "PrismaClient: connect() called Attempting to Connect to DB" ) - if self.db.is_connected() is False: + print("in connect, self.db.is_connected()", self.db.is_connected()) # noqa + if self.db.is_connected() is not True: verbose_proxy_logger.debug( "PrismaClient: DB not connected, Attempting to Connect to DB" )