From: yomguy Date: Wed, 18 Jul 2012 13:08:28 +0000 (+0200) Subject: add exception X-Git-Tag: 0.7-dev^2~113 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3d0ee5695a6dcd87f14c5f4c355a7472e6c70768;p=teleforma.git add exception --- diff --git a/teleforma/management/commands/teleforma-import-conferences.py b/teleforma/management/commands/teleforma-import-conferences.py index 8d9872bc..0e4a58d8 100644 --- a/teleforma/management/commands/teleforma-import-conferences.py +++ b/teleforma/management/commands/teleforma-import-conferences.py @@ -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