From cdf71c86def930125b6ab45db2ba7182ff3a324b Mon Sep 17 00:00:00 2001
From: George Marchment <georgemarchment@yahoo.fr>
Date: Thu, 1 May 2025 15:07:28 +0200
Subject: [PATCH] Fix small bug

---
 src/code_.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/code_.py b/src/code_.py
index 349da56..af4784a 100644
--- a/src/code_.py
+++ b/src/code_.py
@@ -347,7 +347,10 @@ class Code:
         
         for r in to_replace:
             old, new = r
-            self.add_to_ternary_operation_dico(old, new)
+            if(new.strip()!=''):
+                self.add_to_ternary_operation_dico(old, new)
+            else:
+                print(f"old '{old}'", f"new '{new}'")
 
         #Check if there is still a ternary operation in this case we cannot analyse it
         for match in re.finditer(pattern, code):
-- 
GitLab