From 6b2856e06410c70630defcc95050f043fe37fa20 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 6 Jul 2024 11:26:12 -0700 Subject: [PATCH] fix decrypt value logic --- litellm/proxy/common_utils/encrypt_decrypt_utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/litellm/proxy/common_utils/encrypt_decrypt_utils.py b/litellm/proxy/common_utils/encrypt_decrypt_utils.py index f5f7dd4aa2f..b0589bb1a78 100644 --- a/litellm/proxy/common_utils/encrypt_decrypt_utils.py +++ b/litellm/proxy/common_utils/encrypt_decrypt_utils.py @@ -28,10 +28,6 @@ def decrypt_value_helper(value: str): decoded_b64 = base64.b64decode(value) value = decrypt_value(value=decoded_b64, master_key=master_key) # type: ignore return value - else: - raise ValueError( - f"Invalid value passed to decrypt_value: {value}\n Value must be a string. but passed value type is: {type(value)}" - ) except Exception as e: verbose_proxy_logger.error(f"Error decrypting value: {value}\nError: {str(e)}") # [Non-Blocking Exception. - this should not block decrypting other values]