Skip to content

Commit

Permalink
chore: ruff lint fix [2024-12-03]
Browse files Browse the repository at this point in the history
  • Loading branch information
CHRISCARLON committed Dec 3, 2024
1 parent 5aeb4e3 commit 216272e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HerdingCats/explorer/cat_explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

# ----------------------------
Expand Down
3 changes: 1 addition & 2 deletions tests/french_gouv/test_frgouv_get_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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}: "
)

0 comments on commit 216272e

Please sign in to comment.