1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Update __init__.py

This commit is contained in:
Pascal Vizeli
2017-05-02 01:55:48 +02:00
committed by GitHub
parent d2f8e35622
commit 76a999f650

View File

@@ -203,6 +203,8 @@ class DockerBase(object):
image="{}:latest".format(self.image), force=True)
self.dock.images.remove(
image="{}:{}".format(self.image, self.version), force=True)
except docker.errors.ImageNotFound:
return True
except docker.errors.DockerException as err:
_LOGGER.warning("Can't remove image %s -> %s", self.image, err)
return False