mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
nit(backend/copilot): convert f-string to %-logging in _format_sdk_content_blocks
The unknown block type warning was using an f-string which forces string interpolation even when the log level is disabled. Convert to %-style lazy formatting for consistency with the rest of the logging in the module.
This commit is contained in:
@@ -1101,8 +1101,9 @@ def _format_sdk_content_blocks(blocks: list) -> list[dict[str, Any]]:
|
||||
result.append(block)
|
||||
else:
|
||||
logger.warning(
|
||||
f"[SDK] Unknown content block type: {type(block).__name__}. "
|
||||
f"This may indicate a new SDK version with additional block types."
|
||||
"[SDK] Unknown content block type: %s."
|
||||
" This may indicate a new SDK version with additional block types.",
|
||||
type(block).__name__,
|
||||
)
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user