From 2bcb450017686d2f1617faf946f0d2af8b021fe6 Mon Sep 17 00:00:00 2001 From: Caleb Schilly Date: Mon, 23 Sep 2024 09:34:30 -0400 Subject: [PATCH] #2350: improve logic in schema --- scripts/LBDatafile_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/LBDatafile_schema.py b/scripts/LBDatafile_schema.py index 9dca0276c5..a25f6d6e7e 100644 --- a/scripts/LBDatafile_schema.py +++ b/scripts/LBDatafile_schema.py @@ -8,7 +8,7 @@ def validate_ids(field): if 'seq_id' not in field and 'id' not in field: raise ValueError('Either id (bit-encoded) or seq_id must be provided.') - if field['migratable'] and 'seq_id' in field and 'collection_id' not in field: + if field.get("migratable") is True and 'seq_id' in field and 'collection_id' not in field: raise ValueError('If an entity is migratable, it must have a collection_id') return field