diff --git a/pandora/clip/views.py b/pandora/clip/views.py index edf9f8d42..a3d348546 100644 --- a/pandora/clip/views.py +++ b/pandora/clip/views.py @@ -135,7 +135,7 @@ def findClips(request): 'id': a['public_id'], 'value': a['value'], } - if a['layer'] == subtitles['id'] and not a['value']: + if subtitles and a['layer'] == subtitles['id'] and not a['value']: del l['id'] if add_layer: l['layer'] = a['layer']