From 8bfa922d2b154f9ae2829d02c3c88fc701d26ee1 Mon Sep 17 00:00:00 2001 From: Dragos0000 Date: Fri, 1 Mar 2024 14:31:39 +0000 Subject: [PATCH] changed error text --- .../adapters/notice_metadata_normaliser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ted_sws/notice_metadata_processor/adapters/notice_metadata_normaliser.py b/ted_sws/notice_metadata_processor/adapters/notice_metadata_normaliser.py index 73f1b0fb..52218c8c 100644 --- a/ted_sws/notice_metadata_processor/adapters/notice_metadata_normaliser.py +++ b/ted_sws/notice_metadata_processor/adapters/notice_metadata_normaliser.py @@ -288,7 +288,7 @@ def get_form_type_notice_type_and_legal_basis(cls, extracted_notice_subtype: str filtered_df = ef_map.query(f"{E_FORMS_SUBTYPE_KEY}=='{extracted_notice_subtype}'").to_dict(orient='records')[0] except: raise Exception( - 'No eform subtype was extracted from the notice content. Please check that the field exists in the XML content') + 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') try: form_type = filtered_df[FORM_TYPE_KEY] notice_type = filtered_df[E_FORM_NOTICE_TYPE_COLUMN]