forked from 0x2620/pandora
dont fail if clipLayers is missing
This commit is contained in:
parent
513e79b431
commit
9da8c75f70
3 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue