mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
fix: wrap long lines in authenticator.py for Black formatting
- Split f-string on line 185 (98 chars → 2 lines) - Split f-string on line 374 (91 chars → 2 lines) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3d08accf76
commit
785f53f2ec
1 changed files with 4 additions and 2 deletions
|
|
@ -182,7 +182,8 @@ class Authenticator:
|
|||
)
|
||||
except httpx.HTTPStatusError as e:
|
||||
verbose_logger.error(
|
||||
f"HTTP error refreshing API key (attempt {attempt+1}/{max_retries}): {str(e)}"
|
||||
f"HTTP error refreshing API key (attempt {attempt+1}/"
|
||||
f"{max_retries}): {str(e)}"
|
||||
)
|
||||
except Exception as e:
|
||||
verbose_logger.error(f"Unexpected error refreshing API key: {str(e)}")
|
||||
|
|
@ -368,7 +369,8 @@ class Authenticator:
|
|||
verification_uri = device_code_info["verification_uri"]
|
||||
|
||||
print( # noqa: T201
|
||||
f"Please visit {verification_uri} and enter code {user_code} to authenticate.",
|
||||
f"Please visit {verification_uri} and enter code {user_code} "
|
||||
f"to authenticate.",
|
||||
# When this is running in docker, it may not be flushed immediately
|
||||
# so we force flush to ensure the user sees the message
|
||||
flush=True,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue