From faf5bd2c6a535154b3124975f5a1ed65c4c81cc3 Mon Sep 17 00:00:00 2001 From: machinewrapped Date: Fri, 26 May 2023 19:06:23 +0200 Subject: [PATCH] Fix failed retranslation --- PySubtitleGPT/SubtitleTranslator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PySubtitleGPT/SubtitleTranslator.py b/PySubtitleGPT/SubtitleTranslator.py index a1c3c6f6..545620ab 100644 --- a/PySubtitleGPT/SubtitleTranslator.py +++ b/PySubtitleGPT/SubtitleTranslator.py @@ -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")