pylint: Fix unused-variable

Fixed newly exposed unused variables.

Fixes: https://pagure.io/freeipa/issue/9117
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Stanislav Levin
2022-02-21 11:21:20 +03:00
committed by Rob Crittenden
parent a1f0f2743d
commit ba95a377b0
13 changed files with 24 additions and 20 deletions

View File

@@ -661,7 +661,7 @@ class API(ReadOnly):
except errors.SkipPluginModule as e:
logger.debug("skipping plugin module %s: %s", name, e.reason)
continue
except Exception as e:
except Exception:
tb = self.env.startup_traceback
if tb: # pylint: disable=using-constant-test
logger.exception("could not load plugin module %s", name)

View File

@@ -742,7 +742,7 @@ class KerbTransport(SSLTransport):
self.close()
logger.debug("HTTP server has closed connection (%s)", host)
raise
except BaseException as e:
except BaseException:
# Unexpected exception may leave connections in a bad state.
self.close()
logger.debug("HTTP connection destroyed (%s)",
@@ -837,7 +837,7 @@ class KerbTransport(SSLTransport):
cookie_string, principal)
try:
update_persistent_client_session_data(principal, cookie_string)
except Exception as e:
except Exception:
# Not fatal, we just can't use the session cookie we were sent.
pass
@@ -977,7 +977,7 @@ class RPCClient(Connectible):
principal, e)
try:
delete_persistent_client_session_data(principal)
except Exception as e:
except Exception:
pass
return original_url
except Cookie.URLMismatch as e: