From 73adbd9645cbdd34859cebdbce2933bfc3697409 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 29 Mar 2017 21:21:17 +0200 Subject: [PATCH] add error to log --- hassio_api/hassio/dock/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hassio_api/hassio/dock/__init__.py b/hassio_api/hassio/dock/__init__.py index c63f03cc7..d04ee5a93 100644 --- a/hassio_api/hassio/dock/__init__.py +++ b/hassio_api/hassio/dock/__init__.py @@ -39,13 +39,13 @@ class DockerBase(object): Need run inside executor. """ try: - _LOGGER.info("Pull image %s tag %s", self.image, tag) + _LOGGER.info("Pull image %s tag %s.", self.image, tag) image = self.dock.images.pull(self.image, tag=tag) if tag != 'latest': image.tag(self.image, tag='latest') - except docker.errors.APIError: - _LOGGER.error("Can't pull %s:%s", self.image, tag) + except docker.errors.APIError as err: + _LOGGER.error("Can't pull %s:%s -> %s.", self.image, tag, err) return False return True