]> git.parisson.com Git - teleforma.git/commitdiff
add exception
authoryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 13:08:28 +0000 (15:08 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 13:08:28 +0000 (15:08 +0200)
teleforma/management/commands/teleforma-import-conferences.py

index 8d9872bccdbc56dd8dcab30ba2ed3660c26e820d..0e4a58d8dc76d508a82517104b7b955374c8259e 100644 (file)
@@ -78,11 +78,14 @@ class Command(BaseCommand):
                             break
 
                     streaming = False
-                    stations = conference.station.filter(started=True)
-                    ids = [station.public_id for station in stations]
-                    for id in ids:
-                        if id == public_id:
-                            streaming = True
+                    try:
+                        stations = conference.station.filter(started=True)
+                        ids = [station.public_id for station in stations]
+                        for id in ids:
+                            if id == public_id:
+                                streaming = True
+                    except:
+                        pass
 
                     if not exist and not streaming:
                         print path