diff --git a/HerdingCats/explorer/cat_explore.py b/HerdingCats/explorer/cat_explore.py index 929df4e..27b3592 100644 --- a/HerdingCats/explorer/cat_explore.py +++ b/HerdingCats/explorer/cat_explore.py @@ -1387,7 +1387,7 @@ def get_dataset_resources(self, dataset) -> list: try: resources = [resource for resource in dataset["resources"]] return resources - except Exception as e: + except Exception: raise # ---------------------------- diff --git a/tests/french_gouv/test_frgouv_get_datasets.py b/tests/french_gouv/test_frgouv_get_datasets.py index 6bef109..fce82bc 100644 --- a/tests/french_gouv/test_frgouv_get_datasets.py +++ b/tests/french_gouv/test_frgouv_get_datasets.py @@ -2,7 +2,6 @@ import requests from HerdingCats.session.cat_session import CatSession -from HerdingCats.endpoints.api_endpoints import FrenchGouvApiPaths from HerdingCats.explorer.cat_explore import FrenchGouvCatExplorer from loguru import logger @@ -38,7 +37,7 @@ def test_ckan_health_check(catalogue_url): ) except AssertionError as e: pytest.fail(str(e)) - except Exception as e: + except Exception: pytest.fail( f"Unexpected error while fetching data from {catalogue_url}: " )