Skip to content

Commit

Permalink
[PRMP-760] - add logs for missing ods
Browse files Browse the repository at this point in the history
  • Loading branch information
NogaNHS committed Sep 6, 2024
1 parent b179cc4 commit f1cd538
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lambda/event-enrichment/event_enrichment_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def _enrich_events(sqs_messages: dict) -> list:
supplier_key="requestingSupplierName",
)
)
else:
print("Missing requestingPracticeOdsCode in event, skipping enrichment for requesting practice.")
# set sending practice info
sending_practice_ods = event.get("sendingPracticeOdsCode")
if sending_practice_ods:
Expand All @@ -92,7 +94,8 @@ def _enrich_events(sqs_messages: dict) -> list:
supplier_key="sendingSupplierName",
)
)

else:
print("Missing sendingPracticeOdsCode in event, skipping enrichment for sending practice.")
# temporary fix for EMIS wrong reportingSystemSupplier data
reporting_system_supplier = event["reportingSystemSupplier"]
if reporting_system_supplier.isnumeric():
Expand Down

0 comments on commit f1cd538

Please sign in to comment.