Merge pull request #447 from Hestia-Homes/main

handing a case of missing region
This commit is contained in:
KhalimCK 2025-07-14 11:32:09 +01:00 committed by GitHub
commit c3b5e74480
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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',
}