From 40b2f33a80827edec000f68a7cfaa7128811d51f Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 13 May 2024 12:30:54 -0700 Subject: [PATCH] fix - only schedule spend alerting when db is not none --- litellm/proxy/proxy_server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 5d6a2acb08..837940828c 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -3483,6 +3483,7 @@ async def startup_event(): if ( proxy_logging_obj is not None and proxy_logging_obj.slack_alerting_instance is not None + and prisma_client is not None ): print("Alerting: Initializing Weekly/Monthly Spend Reports") # noqa ### Schedule weekly/monhtly spend reports ###