We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1265ae1 commit 47204adCopy full SHA for 47204ad
spp_import_dci_api/models/fetch_crvs_beneficiary.py
@@ -201,10 +201,13 @@ def create_locations(self):
201
202
if location_path:
203
url = f"{data_source_id.url}{location_path}"
204
- response = requests.get(url, timeout=constants.REQUEST_TIMEOUT)
205
- if response.ok:
206
- result = response.json()
207
- self.process_location(result)
+ try:
+ response = requests.get(url, timeout=constants.REQUEST_TIMEOUT)
+ if response.ok:
+ result = response.json()
208
+ self.process_location(result)
209
+ except requests.exceptions.ConnectionError as e:
210
+ _logger.error(e)
211
212
def get_parent(self):
213
"""
0 commit comments