Skip to content

Commit

Permalink
Fix remote image check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulthran committed Feb 13, 2024
1 parent 9e6c3af commit d3f0bff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ from sunbeamlib.reports import *
client = docker.from_env()
image_name = f"ctbushman/sunbeam:v{__version__}"
try:
client.images.get(image_name)
except docker.errors.ImageNotFound:
client.images.get_registry_data(image_name)
except docker.errors.NotFound:
sys.stderr.write(
f"WARNING: {image_name} not found on DockerHub, using latest tag instead.\n"
)
Expand Down

0 comments on commit d3f0bff

Please sign in to comment.