mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
fixed printing colors
This commit is contained in:
@@ -112,14 +112,10 @@ class KickoffTaskOutputsSQLiteStorage:
|
|||||||
if cursor.rowcount == 0:
|
if cursor.rowcount == 0:
|
||||||
self._printer.print(
|
self._printer.print(
|
||||||
f"No row found with task_index {task_index}. No update performed.",
|
f"No row found with task_index {task_index}. No update performed.",
|
||||||
color="yellow",
|
color="red",
|
||||||
)
|
|
||||||
else:
|
|
||||||
self._printer.print(
|
|
||||||
f"Updated row with task_index {task_index}.", color="green"
|
|
||||||
)
|
)
|
||||||
except sqlite3.Error as e:
|
except sqlite3.Error as e:
|
||||||
self._printer.print(f"UPDATE ERROR: {e}", color="red")
|
self._printer.print(f"UPDATE KICKOFF TASK OUTPUTS ERROR: {e}", color="red")
|
||||||
|
|
||||||
def load(self) -> Optional[List[Dict[str, Any]]]:
|
def load(self) -> Optional[List[Dict[str, Any]]]:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user