Skip to content

Commit

Permalink
catch attribute errors when comparing image digests (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
circa10a authored Feb 23, 2019
1 parent 6f7e7d7 commit 129cefb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pyouroboros/dockerclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,13 @@ def socket_check(self):
latest_image = self.pull(current_tag)
except ConnectionError:
continue
if current_image.id != latest_image.id:
updateable.append((container, current_image, latest_image))
else:
continue
try:
if current_image.id != latest_image.id:
updateable.append((container, current_image, latest_image))
else:
continue
except AttributeError:
self.logger.error("Issue detecting %s's image tag. Skipping...", container.name)

# Get container list to restart after update complete
depends_on = container.labels.get('com.ouroboros.depends_on', False)
Expand Down

0 comments on commit 129cefb

Please sign in to comment.