Skip to content

Commit 34fd27f

Browse files
authored
more resilence to catalog errors (#732)
1 parent 129ac03 commit 34fd27f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cid/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ def load_catalog(self, catalog_url):
327327
'''
328328
try:
329329
catalog = yaml.safe_load(self.get_page(catalog_url).text)
330-
except requests.exceptions.HTTPError as exc:
331-
logger.warning(f'Failed to load catalog url: {exc}')
330+
except (requests.exceptions.RequestException, yaml.error.MarkedYAMLError) as exc:
331+
logger.warning(f'Failed to load a catalog url: {exc}')
332332
logger.debug(exc, exc_info=True)
333333
return
334334
for resource_ref in catalog.get('Resources', []):

0 commit comments

Comments
 (0)