From 54a71013612586b653accc56e4b617bf4c921567 Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Sun, 11 Mar 2018 12:18:28 +0100 Subject: [PATCH] Annotations could be empty --- bob/bio/base/annotator/FailSafe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob/bio/base/annotator/FailSafe.py b/bob/bio/base/annotator/FailSafe.py index 4ba32ad6..88af4ddc 100644 --- a/bob/bio/base/annotator/FailSafe.py +++ b/bob/bio/base/annotator/FailSafe.py @@ -38,7 +38,7 @@ class FailSafe(Annotator): if not annotations: logger.debug( "Annotator `%s' returned empty annotations.", annotator) - kwargs['annotations'].update(annotations) + 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): break -- GitLab