mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
fix(proxy): declare is_database_configured locals Final for the type-discipline gate
Signed-off-by: SIDDARTHA REDDY <75976672+SIDDARTHAREDDY8@users.noreply.github.com>
This commit is contained in:
parent
fef9c7e5bf
commit
4016316c20
1 changed files with 2 additions and 2 deletions
|
|
@ -112,8 +112,8 @@ class PrismaDBExceptionHandler:
|
|||
# ``proxy_server`` here could fail or recurse while it is still
|
||||
# being imported, and a proxy server that has not been imported
|
||||
# yet has not configured a database through it either.
|
||||
proxy_server_module = sys.modules.get("litellm.proxy.proxy_server")
|
||||
general_settings = getattr(proxy_server_module, "general_settings", None)
|
||||
proxy_server_module: Final = sys.modules.get("litellm.proxy.proxy_server")
|
||||
general_settings: Final = getattr(proxy_server_module, "general_settings", None)
|
||||
return isinstance(general_settings, dict) and bool(general_settings.get("database_url"))
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue