Fixing Docker compile time errors irt exception handling for Python 3

This commit is contained in:
Mike Mars 2016-06-02 14:30:35 -07:00 committed by Matt Clay
commit e2dbd0f445
3 changed files with 17 additions and 17 deletions

View file

@ -213,7 +213,7 @@ class ImageManager(DockerBaseClass):
for image in images:
try:
inspection = self.client.inspect_image(image['Id'])
except Exception, exc:
except Exception as exc:
self.fail("Error inspecting image %s - %s" % (image['Id'], str(exc)))
results.append(inspection)
return results