Skip to content

Commit 8bfa922

Browse files
committed
changed error text
1 parent 24ea6bd commit 8bfa922

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ted_sws/notice_metadata_processor/adapters/notice_metadata_normaliser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def get_form_type_notice_type_and_legal_basis(cls, extracted_notice_subtype: str
288288
filtered_df = ef_map.query(f"{E_FORMS_SUBTYPE_KEY}=='{extracted_notice_subtype}'").to_dict(orient='records')[0]
289289
except:
290290
raise Exception(
291-
'No eform subtype was extracted from the notice content. Please check that the field exists in the XML content')
291+
f'No mapping available for {extracted_notice_subtype} notice subtype. Please check that the field exists in the XML content if the notice subtype is not specified in this message')
292292
try:
293293
form_type = filtered_df[FORM_TYPE_KEY]
294294
notice_type = filtered_df[E_FORM_NOTICE_TYPE_COLUMN]

0 commit comments

Comments
 (0)