diff --git a/hepdata/modules/records/utils/analyses.py b/hepdata/modules/records/utils/analyses.py index 3893339f..983a407f 100644 --- a/hepdata/modules/records/utils/analyses.py +++ b/hepdata/modules/records/utils/analyses.py @@ -87,9 +87,10 @@ def update_analyses(endpoint=None): else: - # Remove resource from 'analysis_resources' list. - resource = list(filter(lambda a: a.file_location == _resource_url, analysis_resources))[0] - analysis_resources.remove(resource) + # Remove resources from 'analysis_resources' list. + resources = list(filter(lambda a: a.file_location == _resource_url, analysis_resources)) + for resource in resources: + analysis_resources.remove(resource) if num_new_resources: diff --git a/hepdata/version.py b/hepdata/version.py index c4a0bd28..ab77b827 100644 --- a/hepdata/version.py +++ b/hepdata/version.py @@ -28,4 +28,4 @@ and parsed by ``setup.py``. """ -__version__ = "0.9.4dev20240910" +__version__ = "0.9.4dev20241003"