Skip to content

Commit

Permalink
Fix failed retranslation
Browse files Browse the repository at this point in the history
  • Loading branch information
machinewrapped committed May 26, 2023
1 parent 7403e07 commit faf5bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PySubtitleGPT/SubtitleTranslator.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,5 +373,5 @@ def RequestRetranslations(self, client : ChatGPTClient, batch : SubtitleBatch, t
batch.translated = MergeTranslations(batch.translated, retranslated)

except TranslationError as e:
logging.warn(f"Retranslation request did not fix problems:\n{retranslation.get('text')}\n")
logging.warn(f"Retranslation request did not fix problems:\n{retranslation.text}\n")

0 comments on commit faf5bd2

Please sign in to comment.