From 139a5e3722bb0492a39c51127a13b7fc49e8625e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 23 Dec 2014 12:49:59 +0000 Subject: [PATCH] handle cut issues --- pandora/edit/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/edit/models.py b/pandora/edit/models.py index 98189eec..8a836af9 100644 --- a/pandora/edit/models.py +++ b/pandora/edit/models.py @@ -449,7 +449,7 @@ class Clip(models.Model): if value: data[key] = value data['duration'] = data['out'] - data['in'] - data['cuts'] = tuple([c for c in self.item.get('cuts') if c > self.start and c < self.end]) + data['cuts'] = tuple([c for c in self.item.get('cuts', []) if c > self.start and c < self.end]) data['layers'] = self.get_layers(user) return data