mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-05 11:08:51 +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
|
redefined-outer-name, # needed for test fixtures
|
||||||
subprocess-popen-preexec-fn,
|
subprocess-popen-preexec-fn,
|
||||||
unexpected-keyword-arg,
|
unexpected-keyword-arg,
|
||||||
unnecessary-pass,
|
|
||||||
unsupported-assignment-operation, # TODO: needs better typing info
|
unsupported-assignment-operation, # TODO: needs better typing info
|
||||||
unused-argument,
|
unused-argument,
|
||||||
unused-variable,
|
unused-variable,
|
||||||
|
|||||||
@ -370,7 +370,6 @@ def _load_legacy_config(config_file):
|
|||||||
}
|
}
|
||||||
except Exception as e: # pylint: disable=broad-exception-caught
|
except Exception as e: # pylint: disable=broad-exception-caught
|
||||||
log.debug(e)
|
log.debug(e)
|
||||||
pass
|
|
||||||
|
|
||||||
log.debug("All parsing attempts failed - returning empty config")
|
log.debug("All parsing attempts failed - returning empty config")
|
||||||
return {}
|
return {}
|
||||||
|
|||||||
@ -61,7 +61,7 @@ class NpipeHTTPConnectionPool(urllib3.connectionpool.HTTPConnectionPool):
|
|||||||
self,
|
self,
|
||||||
"Pool reached maximum size and no more connections are allowed.",
|
"Pool reached maximum size and no more connections are allowed.",
|
||||||
) from exc
|
) 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()
|
return conn or self._new_conn()
|
||||||
|
|
||||||
|
|||||||
@ -168,7 +168,7 @@ class SSHConnectionPool(urllib3.connectionpool.HTTPConnectionPool):
|
|||||||
self,
|
self,
|
||||||
"Pool reached maximum size and no more connections are allowed.",
|
"Pool reached maximum size and no more connections are allowed.",
|
||||||
) from exc
|
) 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()
|
return conn or self._new_conn()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user