skip cases with no candidates

This commit is contained in:
Khalim Conn-Kowlessar 2024-07-02 12:22:35 +01:00
parent b8e7693479
commit d562324dd9

View file

@ -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]