]> git.parisson.com Git - teleforma.git/commitdiff
add condition
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 24 Jun 2026 21:11:56 +0000 (23:11 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 24 Jun 2026 21:11:56 +0000 (23:11 +0200)
teleforma/management/commands/teleforma-import-conferences-4.py

index 9b9d89f8c45bd4b652fc98ee60e92d694cdeedf4..c5e868d9eb6edd33632e51388e1a73933a4762e9 100644 (file)
@@ -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]