Address unnecessary-pass.

This commit is contained in:
Felix Fontein 2025-10-12 10:21:22 +02:00
parent 8b401c5636
commit 98c5a4a7d8
4 changed files with 2 additions and 4 deletions

View File

@ -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,

View File

@ -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 {}

View File

@ -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()

View File

@ -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()