Skip to content
Snippets Groups Projects
Commit 54a71013 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Annotations could be empty

parent 0414a71b
No related branches found
No related tags found
1 merge request!137Add support for listing annotator configs
...@@ -38,7 +38,7 @@ class FailSafe(Annotator): ...@@ -38,7 +38,7 @@ class FailSafe(Annotator):
if not annotations: if not annotations:
logger.debug( logger.debug(
"Annotator `%s' returned empty annotations.", annotator) "Annotator `%s' returned empty annotations.", annotator)
kwargs['annotations'].update(annotations) kwargs['annotations'].update(annotations or {})
# check if we have all the required annotations # check if we have all the required annotations
if all(key in kwargs['annotations'] for key in self.required_keys): if all(key in kwargs['annotations'] for key in self.required_keys):
break break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment