Skip to content

Commit

Permalink
Remove unnecessary dummy variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Feb 28, 2021
1 parent 7f0ec90 commit b3b6da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/docker_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def absent(self):
if not self.check_mode:
try:
self.client.remove_image(name, force=self.force_absent)
except NotFound as dummy:
except NotFound:
# If the image vanished while we were trying to remove it, don't fail
pass
except Exception as exc:
Expand Down

0 comments on commit b3b6da6

Please sign in to comment.