From ec871b6ba6a3810a27d616ef5dd5289217acb58d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 19 Jul 2021 21:07:00 +0200 Subject: [PATCH] lingo: do not crash on missing invoice creation or payment limit dates (#55686) --- combo/apps/lingo/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/combo/apps/lingo/models.py b/combo/apps/lingo/models.py index 392fc7ec..857a662d 100644 --- a/combo/apps/lingo/models.py +++ b/combo/apps/lingo/models.py @@ -711,8 +711,8 @@ class RemoteItem(object): ): self.id = id self.regie = regie - self.creation_date = dateparse.parse_date(creation_date) - self.payment_limit_date = dateparse.parse_date(payment_limit_date) + self.creation_date = dateparse.parse_date(creation_date or '') + self.payment_limit_date = dateparse.parse_date(payment_limit_date or '') self.total_amount = Decimal(total_amount) self.amount = Decimal(amount) if amount_paid: