No warning messages for partial msds

This commit is contained in:
2026-03-30 10:03:49 +02:00
parent b711fae3b5
commit 4d86631283

View File

@@ -259,7 +259,13 @@ class Converter:
def is_valid_msd(self, msd): def is_valid_msd(self, msd):
"""Verify if the Msd code is in the standard JOS set.""" """Verify if the Msd code is in the standard JOS set."""
return msd.code in self.specifications.codes_map[msd.language] code_map = self.specifications.codes_map[msd.language]
if msd.code in code_map:
return True
for msd_code in code_map:
if msd_code.startswith(msd.code):
return True
return False
def check_valid_msd(self, msd, require_valid_flag): def check_valid_msd(self, msd, require_valid_flag):
"""If the Msd code is not valid, raise an exception or give a warning.""" """If the Msd code is not valid, raise an exception or give a warning."""