fixed printing colors

This commit is contained in:
Lorenze Jay
2024-07-15 09:29:11 -07:00
parent 7178f8b765
commit e802a2b866

View File

@@ -112,14 +112,10 @@ class KickoffTaskOutputsSQLiteStorage:
if cursor.rowcount == 0:
self._printer.print(
f"No row found with task_index {task_index}. No update performed.",
color="yellow",
)
else:
self._printer.print(
f"Updated row with task_index {task_index}.", color="green"
color="red",
)
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]]]:
try: