From 94b093c001c031e5af90c87a2dd887de2e698c0f Mon Sep 17 00:00:00 2001
From: Juuso Rytilahti <rytilahti.juuso@gmail.com>
Date: Wed, 4 Oct 2023 11:47:17 +0300
Subject: [PATCH] Added missing line

---
 translator_script.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/translator_script.py b/translator_script.py
index d11bc99..4efeecc 100644
--- a/translator_script.py
+++ b/translator_script.py
@@ -140,6 +140,7 @@ def get_recursive_translation(chunk, i, previous_messages, attempt=1, max_attemp
     ChatGPT has tendency to (sometimes) repeat the previous translation again in the new message.
     If that happens, try to translate the chunk again.
     """
+    trans = get_translation_for_chunk(chunk, i, previous_messages=copy.deepcopy(previous_messages))
     if not trans:
         return None
     
-- 
GitLab