fix code QA checks

This commit is contained in:
Ishaan Jaffer 2026-01-23 12:29:32 -08:00
parent 528460a895
commit c4a7422d25
4 changed files with 1 additions and 11 deletions

View file

@ -4,8 +4,6 @@ CRUD ENDPOINTS FOR POLICIES
Provides REST API endpoints for managing policies and policy attachments.
"""
from typing import List, Optional
from fastapi import APIRouter, Depends, HTTPException
from litellm._logging import verbose_proxy_logger

View file

@ -11,7 +11,6 @@ from datetime import datetime, timezone
from typing import TYPE_CHECKING, Any, Dict, List, Optional
from litellm._logging import verbose_proxy_logger
from litellm.litellm_core_utils.safe_json_dumps import safe_dumps
from litellm.types.proxy.policy_engine import (
Policy,
PolicyCondition,

View file

@ -563,7 +563,7 @@ class HashicorpSecretManager(BaseSecretManager):
return create_response
except httpx.TimeoutException as e:
except httpx.TimeoutException:
verbose_logger.exception("Timeout error occurred during secret rotation")
return {"status": "error", "message": "Timeout error occurred"}
except Exception as e:

View file

@ -10,21 +10,14 @@ import AttachmentTable from "./attachment_table";
import AddAttachmentForm from "./add_attachment_form";
import {
getPoliciesList,
createPolicyCall,
updatePolicyCall,
deletePolicyCall,
getPolicyInfo,
getPolicyAttachmentsList,
createPolicyAttachmentCall,
deletePolicyAttachmentCall,
getGuardrailsList,
} from "../networking";
import {
Policy,
PolicyAttachment,
PolicyCreateRequest,
PolicyUpdateRequest,
PolicyAttachmentCreateRequest,
} from "./types";
import { Guardrail } from "../guardrails/types";
import DeleteResourceModal from "../common_components/DeleteResourceModal";