mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
fix(proxy/utils.py): fix linting error
This commit is contained in:
parent
ec9cdf783a
commit
f9ae931872
1 changed files with 2 additions and 4 deletions
|
|
@ -3575,7 +3575,7 @@ def handle_exception_on_proxy(e: Exception) -> ProxyException:
|
|||
)
|
||||
|
||||
|
||||
def _premium_user_check(feature:str=None):
|
||||
def _premium_user_check(feature: Optional[str] = None):
|
||||
"""
|
||||
Raises an HTTPException if the user is not a premium user
|
||||
"""
|
||||
|
|
@ -3589,9 +3589,7 @@ def _premium_user_check(feature:str=None):
|
|||
if not premium_user:
|
||||
raise HTTPException(
|
||||
status_code=403,
|
||||
detail={
|
||||
"error": detail_msg
|
||||
},
|
||||
detail={"error": detail_msg},
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue