dont fail if no subtitles layer is defined

This commit is contained in:
j 2013-03-14 07:32:59 +00:00
parent 4ea2328fe5
commit 70cfee4f73

View file

@ -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']