Skip to content

Commit

Permalink
catching IndexError, as might happen after local build
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Oct 9, 2021
1 parent 92d9710 commit 67b383c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli50/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def main():
digest = requests.get(f"https://registry.hub.docker.com/v2/repositories/{IMAGE}/tags/{args['tag']}").json()["images"][0]["digest"]
RepoDigest = json.loads(subprocess.check_output(["docker", "inspect", f"{IMAGE}:{args['tag']}"]).decode("utf-8"))[0]["RepoDigests"][0]
assert f"{IMAGE}@{digest}" == RepoDigest
except (requests.RequestException, subprocess.CalledProcessError):
except (IndexError, requests.RequestException, subprocess.CalledProcessError):
pass
except AssertionError:
try:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"console_scripts": ["cli50=cli50.__main__:main"]
},
url="https://github.com/cs50/cli50",
version="7.0.1",
version="7.0.2",
include_package_data=True
)

0 comments on commit 67b383c

Please sign in to comment.