From 3e41315689e876b5c9d48aa4daec5e36ddd04fa0 Mon Sep 17 00:00:00 2001
From: camilogs <camilo.gonzalez.col@gmail.com>
Date: Mon, 7 Aug 2023 13:27:24 -0500
Subject: [PATCH] =?UTF-8?q?fix:=20Si=20no=20se=20han=20creado=20llamadas?=
 =?UTF-8?q?=20al=20prospecto=20se=20rompe=20la=20transacci=C3=B3n=20en=20?=
 =?UTF-8?q?=5Fget=5Fcurrent=5Finterest?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 prospect_trace.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/prospect_trace.py b/prospect_trace.py
index d4e692e..23b95e6 100644
--- a/prospect_trace.py
+++ b/prospect_trace.py
@@ -29,4 +29,5 @@ class ProspectTrace(ModelSQL, ModelView):
             self.prospect_city = self.prospect.city
 
     def _get_current_interest(self, name):
-        return self.calls[-1].interest
+        if self.calls:
+            return self.calls[-1].interest