dont fail if clipLayers is missing

This commit is contained in:
j 2012-04-02 17:33:09 +02:00
commit 9da8c75f70
3 changed files with 3 additions and 3 deletions

View file

@ -141,7 +141,7 @@ class Annotation(models.Model):
self.sortvalue = None
#no clip or update clip
if self.layer in settings.CONFIG['clipLayers']:
if self.layer in settings.CONFIG.get('clipLayers', []):
if not self.clip or self.start != self.clip.start or self.end != self.clip.end:
self.clip, created = Clip.get_or_create(self.item, self.start, self.end)
elif self.clip: