mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Add more CI checks (#1150)
* Enable mypy. * Add flake8. * Add pylint with a long list of ignores to be removed.
This commit is contained in:
@@ -387,7 +387,7 @@ class AnsibleDockerClientBase(Client):
|
||||
result = self.inspect_container(container=container_id)
|
||||
self.log("Completed container inspection")
|
||||
return result
|
||||
except NotFound as dummy:
|
||||
except NotFound:
|
||||
return None
|
||||
except Exception as exc:
|
||||
self.fail(f"Error inspecting container: {exc}")
|
||||
@@ -461,7 +461,7 @@ class AnsibleDockerClientBase(Client):
|
||||
self.log(f"Inspecting network Id {network_id}")
|
||||
result = self.inspect_network(network_id)
|
||||
self.log("Completed network inspection")
|
||||
except NotFound as dummy:
|
||||
except NotFound:
|
||||
return None
|
||||
except Exception as exc:
|
||||
self.fail(f"Error inspecting network: {exc}")
|
||||
|
||||
Reference in New Issue
Block a user