Skip to content

Commit 2cbba2a

Browse files
committed
chore: format
1 parent 62ab30f commit 2cbba2a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

backend/open_webui/models/auths.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ def authenticate_user(
146146
def authenticate_user_by_api_key(
147147
self, api_key: str, db: Optional[Session] = None
148148
) -> Optional[UserModel]:
149-
log.info(f"authenticate_user_by_api_key: ...{api_key[-4:]}" if api_key else "authenticate_user_by_api_key: <empty>")
149+
log.info(
150+
f"authenticate_user_by_api_key: ...{api_key[-4:]}"
151+
if api_key
152+
else "authenticate_user_by_api_key: <empty>"
153+
)
150154
# if no api_key, return None
151155
if not api_key:
152156
return None

0 commit comments

Comments
 (0)