From 17233d8dedcf1f4a8f01ab88b3d88bbc9e0583ad Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Tue, 20 Jan 2026 17:02:55 +0100 Subject: [PATCH] 20.01.26 --- modules/automation/cron.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/automation/cron.py b/modules/automation/cron.py index 4cf4657..19be474 100644 --- a/modules/automation/cron.py +++ b/modules/automation/cron.py @@ -258,10 +258,10 @@ class AutomationCron(ModelSQL, ModelView): logger.warning(f"Carrier NON TROUVÉ pour {si_number}: '{carrier_name}'") agent = None - if agent_name: - agent_list = Party.search([('name', '=', str(agent_name).strip().upper())], limit=1) - if agent_list: - agent = agent_list[0] + + agent_list = Party.search([('name', '=', str(agent_name or 'TBN').strip().upper())], limit=1) + if agent_list: + agent = agent_list[0] vessel = None if vessel_name: