From 2e3fdbe2e0467fc3923892a6b257af58d533131b Mon Sep 17 00:00:00 2001 From: Luka Dragar Date: Wed, 19 Aug 2026 13:08:50 +0200 Subject: [PATCH] Small bug fix regarding converting valid msds to properties --- conversion_utils/jos_msds_and_properties.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conversion_utils/jos_msds_and_properties.py b/conversion_utils/jos_msds_and_properties.py index 5691bf4..df1f046 100644 --- a/conversion_utils/jos_msds_and_properties.py +++ b/conversion_utils/jos_msds_and_properties.py @@ -383,6 +383,8 @@ class Converter: feature_value_list = [] lexeme_feature_map = {} form_feature_map = {} + if msd.state not in [Msd.State.FULL, Msd.State.PARTIAL]: + raise MsdException(f"Msd must be full or partial to be converted to Properties, but is {msd.state.name}.") for (index, value_char) in enumerate(value_chars, start=1): if (value_char != '-'): feature = category.find_feature_by_position(index)