Skip to content

Commit

Permalink
fix zero division error
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikvirendrar committed Nov 4, 2024
1 parent fb9b84b commit 9fcf932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/voiceover/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def get_payload(request):
)
try:
text_length_per_second = len(transcription_text)/t_d
except ZeroDivisionError:
except:
text_length_per_second = 0
sentences_list.append(
{
Expand Down Expand Up @@ -1499,7 +1499,7 @@ def save_voice_over(request):
else:
try:
text_length_per_second = len(transcription_text)/t_d
except ZeroDivisionError:
except:
text_length_per_second = 0
voice_over_obj.payload["payload"][
str(start_offset + i)
Expand Down

0 comments on commit 9fcf932

Please sign in to comment.