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

don't return half annoations in failsafe

parent 870a416b
No related branches found
No related tags found
1 merge request!131Add annotator support
......@@ -42,4 +42,7 @@ class FailSafe(Base):
# check if we have all the required annotations
if all(key in kwargs['annotations'] for key in self.required_keys):
break
else: # this else is for the for loop
# we don't want to return half of the annotations
kwargs['annotations'] = {}
return kwargs['annotations']
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