forked from 0x2620/pandora
don't fail on removed layers
This commit is contained in:
parent
dacbdf45f8
commit
41d4e52f84
1 changed files with 19 additions and 18 deletions
|
@ -330,6 +330,7 @@ class Annotation(models.Model):
|
||||||
if self.languages:
|
if self.languages:
|
||||||
j['languages'] = self.languages.split(',')
|
j['languages'] = self.languages.split(',')
|
||||||
l = self.get_layer()
|
l = self.get_layer()
|
||||||
|
if l:
|
||||||
if l['type'] == 'entity':
|
if l['type'] == 'entity':
|
||||||
try:
|
try:
|
||||||
(j['entity'], j['value']) = self._get_entity_json(
|
(j['entity'], j['value']) = self._get_entity_json(
|
||||||
|
|
Loading…
Reference in a new issue