mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-16 04:04:31 +00:00
Address unnecessary-pass.
This commit is contained in:
parent
8b401c5636
commit
98c5a4a7d8
@ -391,7 +391,6 @@ disable=raw-checker-failed,
|
||||
redefined-outer-name, # needed for test fixtures
|
||||
subprocess-popen-preexec-fn,
|
||||
unexpected-keyword-arg,
|
||||
unnecessary-pass,
|
||||
unsupported-assignment-operation, # TODO: needs better typing info
|
||||
unused-argument,
|
||||
unused-variable,
|
||||
|
||||
@ -370,7 +370,6 @@ def _load_legacy_config(config_file):
|
||||
}
|
||||
except Exception as e: # pylint: disable=broad-exception-caught
|
||||
log.debug(e)
|
||||
pass
|
||||
|
||||
log.debug("All parsing attempts failed - returning empty config")
|
||||
return {}
|
||||
|
||||
@ -61,7 +61,7 @@ class NpipeHTTPConnectionPool(urllib3.connectionpool.HTTPConnectionPool):
|
||||
self,
|
||||
"Pool reached maximum size and no more connections are allowed.",
|
||||
) from exc
|
||||
pass # Oh well, we'll create a new connection then
|
||||
# Oh well, we'll create a new connection then
|
||||
|
||||
return conn or self._new_conn()
|
||||
|
||||
|
||||
@ -168,7 +168,7 @@ class SSHConnectionPool(urllib3.connectionpool.HTTPConnectionPool):
|
||||
self,
|
||||
"Pool reached maximum size and no more connections are allowed.",
|
||||
) from exc
|
||||
pass # Oh well, we'll create a new connection then
|
||||
# Oh well, we'll create a new connection then
|
||||
|
||||
return conn or self._new_conn()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user