mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-03 22:19:27 +00:00
style: format decorators.py with ruff
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -123,9 +123,13 @@ class PersistenceDecorator:
|
||||
raise RuntimeError(f"State persistence failed: {e!s}") from e
|
||||
|
||||
# Log storage location so users can find their persisted data
|
||||
storage_location = getattr(persistence_instance, "db_path", type(persistence_instance).__name__)
|
||||
storage_location = getattr(
|
||||
persistence_instance, "db_path", type(persistence_instance).__name__
|
||||
)
|
||||
if verbose:
|
||||
msg = LOG_MESSAGES["save_state_location"].format(flow_uuid, storage_location)
|
||||
msg = LOG_MESSAGES["save_state_location"].format(
|
||||
flow_uuid, storage_location
|
||||
)
|
||||
PRINTER.print(msg, color="cyan")
|
||||
logger.info(
|
||||
LOG_MESSAGES["save_state_location"].format(flow_uuid, storage_location)
|
||||
|
||||
Reference in New Issue
Block a user