fix: fix linting issues

This commit is contained in:
Krrish Dholakia 2023-11-24 15:46:25 -08:00
parent fe900966c1
commit d62da29cbe
2 changed files with 3 additions and 1 deletions

View file

@ -790,6 +790,8 @@ async def delete_key_fn(request: Request):
async def info_key_fn(key: str = fastapi.Query(..., description="Key in the request parameters")):
global prisma_client
try:
if prisma_client is None:
raise Exception(f"Database not connected. Connect a database to your proxy - https://docs.litellm.ai/docs/simple_proxy#managing-auth---virtual-keys")
key_info = await prisma_client.litellm_verificationtoken.find_unique(
where={
"token": key