Commit 54a71013 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Annotations could be empty

parent 0414a71b
......@@ -38,7 +38,7 @@ class FailSafe(Annotator):
if not annotations:
"Annotator `%s' returned empty annotations.", annotator)
kwargs['annotations'].update(annotations or {})
# check if we have all the required annotations
if all(key in kwargs['annotations'] for key in self.required_keys):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment