handing a case of missing region

This commit is contained in:
Khalim Conn-Kowlessar 2025-07-14 11:25:49 +01:00
parent 905a7295b8
commit f414fbf01d
2 changed files with 2 additions and 0 deletions

View file

@ -720,6 +720,7 @@ class RetrieveFindMyEpc:
# We attempt with the backup add
searcher = cls(address=address1, postcode=epc["postcode"])
find_epc_data = searcher.retrieve_newest_find_my_epc_data()
logger.info("Successfully retrieved find my epc data using backup address")
non_invasive_recommendations = {
"uprn": epc["uprn"],

View file

@ -186,4 +186,5 @@ county_to_region_map = {
'Southwark': 'Inner London', 'Sutton': 'Inner London', 'Tower Hamlets': 'Inner London',
'Waltham Forest': 'Inner London',
'Wandsworth': 'Inner London', 'Westminster': 'Inner London',
'Richmond upon Thames': 'Outer London',
}