Commit 43e1b2ff authored by Alex Bennée's avatar Alex Bennée
Browse files

docker: fail more gracefully on docker.py check



As this is called directly from the Makefile while determining
dependencies and it is possible the user was configured in one window
but not have credentials in the other. Let's catch the Exceptions and
deal with it quietly.

Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Reported-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
parent be5e1f52
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -479,7 +479,12 @@ class CheckCommand(SubCommand):
    def run(self, args, argv):
        tag = args.tag

        try:
            dkr = Docker()
        except:
            print("Docker not set up")
            return 1

        info = dkr.inspect_tag(tag)
        if info is None:
            print("Image does not exist")