mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix decrypt value logic
This commit is contained in:
parent
8f0b55879f
commit
6b2856e064
1 changed files with 0 additions and 4 deletions
|
@ -28,10 +28,6 @@ def decrypt_value_helper(value: str):
|
||||||
decoded_b64 = base64.b64decode(value)
|
decoded_b64 = base64.b64decode(value)
|
||||||
value = decrypt_value(value=decoded_b64, master_key=master_key) # type: ignore
|
value = decrypt_value(value=decoded_b64, master_key=master_key) # type: ignore
|
||||||
return value
|
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:
|
except Exception as e:
|
||||||
verbose_proxy_logger.error(f"Error decrypting value: {value}\nError: {str(e)}")
|
verbose_proxy_logger.error(f"Error decrypting value: {value}\nError: {str(e)}")
|
||||||
# [Non-Blocking Exception. - this should not block decrypting other values]
|
# [Non-Blocking Exception. - this should not block decrypting other values]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue