mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 14:01:42 -07:00
Fixing Docker compile time errors irt exception handling for Python 3
This commit is contained in:
parent
3fa745eef9
commit
e2dbd0f445
3 changed files with 17 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue