Skip to content

Commit bb50115

Browse files
test: fix minor test
1 parent 056e6e9 commit bb50115

File tree

2 files changed

+134
-103
lines changed

2 files changed

+134
-103
lines changed

litellm/proxy/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3575,7 +3575,7 @@ def handle_exception_on_proxy(e: Exception) -> ProxyException:
35753575
)
35763576

35773577

3578-
def _premium_user_check(feature:str=None):
3578+
def _premium_user_check(feature: Optional[str] = None):
35793579
"""
35803580
Raises an HTTPException if the user is not a premium user
35813581
"""
@@ -3589,9 +3589,7 @@ def _premium_user_check(feature:str=None):
35893589
if not premium_user:
35903590
raise HTTPException(
35913591
status_code=403,
3592-
detail={
3593-
"error": detail_msg
3594-
},
3592+
detail={"error": detail_msg},
35953593
)
35963594

35973595

0 commit comments

Comments
 (0)