mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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: Alex Bennée <alex.bennee@linaro.org> Reported-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
be5e1f527a
commit
43e1b2ffec
1 changed files with 6 additions and 1 deletions
|
@ -479,7 +479,12 @@ class CheckCommand(SubCommand):
|
|||
def run(self, args, argv):
|
||||
tag = args.tag
|
||||
|
||||
dkr = Docker()
|
||||
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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue