Open watucker opened 1 year ago
It's been noted that a relatively new addition to the "moles_record" function above may have caused some unexpected problems. Specifically, the code within this if
block may need better error handling: https://github.com/cedadev/archive_browser/blob/35052b1eeaccd59aba8a17535f4c5954682867d7/browser/views.py#L77
We might need a better way to handle not being able to fetch a catalogue record, and probably shouldn't need to try more than one API endpoint (the MOLES catalogue) to get a cachable result. See: https://github.com/cedadev/archive_browser/blob/aaeaaadf01aad88ee27917a6172b00ca6a9f46a7/browser/views.py#L72
Unsure what the best way to handle a failure is, but at least we should remove "catalogue.ceda.ac.uk" from the list of CAT_URLS.