Skip to content

Conversation

@gau-nernst
Copy link

I'm getting AttributeError here

text=word.get("word", ""),
start_time=word.get("start_time", 0) + self.start_time_offset,
end_time=word.get("end_time", 0) + self.start_time_offset,

The safer way is to use getattr(), which I see that it is already used in a few lines earlier

start_time = getattr(words[0], "start_time", 0) / 1000.0 + self.start_time_offset
end_time = getattr(words[-1], "end_time", 0) / 1000.0 + self.start_time_offset

Pinging @chenghao-mou for review since it looks like you made the last commit to the file. Thank you!

@CLAassistant
Copy link

CLAassistant commented Dec 26, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants