From f3fc06825b53dfc7d3013fc78b81625f94b6175b Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Thu, 11 Mar 2021 12:04:51 +0100 Subject: [PATCH] remove fake message from seminar linked to conference --- teleforma/management/commands/teleforma-export-avis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teleforma/management/commands/teleforma-export-avis.py b/teleforma/management/commands/teleforma-export-avis.py index 9359a6c2..cff0e699 100644 --- a/teleforma/management/commands/teleforma-export-avis.py +++ b/teleforma/management/commands/teleforma-export-avis.py @@ -79,7 +79,9 @@ class Command(BaseCommand): cart = some_cart if not cart: cart_not_found.append(user) - self.log("Can't find cart for testimonial %d and user %s" % (testimonial.id, str(user))) + # if this is a seminar linked to a conference, it's normal we don't find it in the cart + if not testimonial.seminar.conference: + self.log("Can't find cart for testimonial %d and user %s" % (testimonial.id, str(user))) continue if not testimonial.seminar.product_code: -- 2.39.5