diff --git a/CHANGELOG.md b/CHANGELOG.md index 048f20c8d4..bc776bed0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ ### General +- Initialise `docker_image_name` to fix `UnboundLocalError` error ([#2374](https://github.com/nf-core/tools/pull/2374)) - Fix prompt pipeline revision during launch ([#2375](https://github.com/nf-core/tools/pull/2375)) # [v2.9 - Chromium Falcon](https://github.com/nf-core/tools/releases/tag/2.9) + [2023-06-29] diff --git a/nf_core/utils.py b/nf_core/utils.py index 31738edabe..8b73a10921 100644 --- a/nf_core/utils.py +++ b/nf_core/utils.py @@ -733,6 +733,7 @@ def get_tag_date(tag_date): # Obtain common builds from Docker and Singularity images common_keys = list(all_docker.keys() & all_singularity.keys()) current_date = None + docker_image_name = docker_image["image_name"].lstrip("quay.io/") if docker_image is not None else None for k in common_keys: # Get the most recent common image date = max(all_docker[k]["date"], all_docker[k]["date"])