mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
skip cases with no candidates
This commit is contained in:
parent
b8e7693479
commit
d562324dd9
1 changed files with 2 additions and 1 deletions
|
|
@ -83,7 +83,8 @@ def retrieve_find_my_epc_data(uprn: int, postcode: str, address: str, expected_e
|
|||
return None
|
||||
|
||||
if not extracted_table:
|
||||
raise Exception("Fix me")
|
||||
print("No candidates found, skipping for now")
|
||||
return None
|
||||
|
||||
chosen_epc = BASE_ENERGY_URL + extracted_table[0]['extracted_address_url']
|
||||
epc_certificate = chosen_epc.split('/')[-1]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue