From: Guillaume Pellerin Date: Wed, 24 Jun 2026 21:11:56 +0000 (+0200) Subject: add condition X-Git-Tag: 3.0.2~1^2~7 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=576bdc609ab2c00a91e53c7a71271316edd76436;p=teleforma.git add condition --- 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]