Skip to content

Commit f626f5e

Browse files
committed
Compatibility
1 parent 8fc1847 commit f626f5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/together/cli/api/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ def generate_progress_bar(
104104
if finetune_job.status in COMPLETED_STATUSES:
105105
progress = "Progress: [bold green]completed[/bold green]"
106106
elif finetune_job.updated_at is not None:
107-
update_at = datetime.fromisoformat(finetune_job.updated_at).astimezone()
107+
# Replace 'Z' with '+00:00' for Python 3.10 compatibility
108+
updated_at_str = finetune_job.updated_at.replace('Z', '+00:00')
109+
update_at = datetime.fromisoformat(updated_at_str).astimezone()
108110

109111
if finetune_job.progress is not None:
110112
if current_time < update_at:

0 commit comments

Comments
 (0)