Skip to content

Commit 2bcb450

Browse files
committed
#2350: improve logic in schema
1 parent 3b10b0d commit 2bcb450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/LBDatafile_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def validate_ids(field):
88
if 'seq_id' not in field and 'id' not in field:
99
raise ValueError('Either id (bit-encoded) or seq_id must be provided.')
1010

11-
if field['migratable'] and 'seq_id' in field and 'collection_id' not in field:
11+
if field.get("migratable") is True and 'seq_id' in field and 'collection_id' not in field:
1212
raise ValueError('If an entity is migratable, it must have a collection_id')
1313

1414
return field

0 commit comments

Comments
 (0)