don't fail on removed layers

This commit is contained in:
j 2017-07-26 13:31:57 +02:00
parent dacbdf45f8
commit 41d4e52f84

View file

@ -330,6 +330,7 @@ class Annotation(models.Model):
if self.languages:
j['languages'] = self.languages.split(',')
l = self.get_layer()
if l:
if l['type'] == 'entity':
try:
(j['entity'], j['value']) = self._get_entity_json(