Skip to content

Commit

Permalink
Fixed Blocks with no members being set to None
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-r-thorpe committed Jan 12, 2024
1 parent 3fa3fed commit b1c91f4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nmostesting/suites/IS1201Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,6 @@ def nc_object_factory(self, test, class_id, oid, role):
# Check class id to determine if this is a block
if len(class_id) > 1 and class_id[0] == 1 and class_id[1] == 1:
member_descriptors = self.get_property_value(test, oid, NcBlockProperties.MEMBERS.value, role + ": ")
if not member_descriptors:
# An error has likely occured
return None

nc_block = NcBlock(class_id, oid, role, member_descriptors, runtime_constraints)

Expand Down

0 comments on commit b1c91f4

Please sign in to comment.