From 70cfee4f73e7ede15fdd8f5cc08f9dfd94949a14 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 14 Mar 2013 07:32:59 +0000 Subject: [PATCH] dont fail if no subtitles layer is defined --- pandora/clip/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/clip/views.py b/pandora/clip/views.py index edf9f8d4..a3d34854 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']