diff --git a/lib/align/alignments.py b/lib/align/alignments.py index 68bdbceb..ff0f2207 100644 --- a/lib/align/alignments.py +++ b/lib/align/alignments.py @@ -407,8 +407,8 @@ class Alignments(): ``True`` if all faces in the current alignments possess the given ``mask_type`` otherwise ``False`` """ - retval = any((face.get("mask", None) is not None and - face["mask"].get(mask_type, None) is not None) + retval = all((face.get("mask") is not None and + face["mask"].get(mask_type) is not None) for val in self._data.values() for face in val["faces"]) logger.debug(retval)