From 7ee5e0959a443a0be1e0b9434bccd462b6d1b796 Mon Sep 17 00:00:00 2001 From: Rongxin Liu Date: Wed, 11 May 2022 02:19:41 -0400 Subject: [PATCH] catch CalledProcessError --- cli50/__main__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli50/__main__.py b/cli50/__main__.py index 319c234..6e1a946 100644 --- a/cli50/__main__.py +++ b/cli50/__main__.py @@ -174,7 +174,7 @@ def main(): RemoteManifest = json.loads(subprocess.check_output([ "docker", "manifest", "inspect", f"{IMAGE}:{args['tag']}", "--verbose" ], stderr=subprocess.DEVNULL).decode("utf-8")) - except requests.RequestException: + except subprocess.CalledProcessError: RemoteManifest = None # Local digest diff --git a/setup.py b/setup.py index 6af831b..b3a3837 100644 --- a/setup.py +++ b/setup.py @@ -23,6 +23,6 @@ "console_scripts": ["cli50=cli50.__main__:main"] }, url="https://github.com/cs50/cli50", - version="7.2.3", + version="7.2.4", include_package_data=True )