From 576bdc609ab2c00a91e53c7a71271316edd76436 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 24 Jun 2026 23:11:56 +0200 Subject: [PATCH] add condition --- .../management/commands/teleforma-import-conferences-4.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/teleforma/management/commands/teleforma-import-conferences-4.py b/teleforma/management/commands/teleforma-import-conferences-4.py index 9b9d89f8..c5e868d9 100644 --- a/teleforma/management/commands/teleforma-import-conferences-4.py +++ b/teleforma/management/commands/teleforma-import-conferences-4.py @@ -45,7 +45,10 @@ class Command(BaseCommand): for file in files: if self.main_pattern in file: return file - return files[0] + elif len(files) == 1: + return files[0] + else: + return "" def handle(self, *args, **options): organization_name = args[0] -- 2.47.3