mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
committed by
Rob Crittenden
parent
a1f0f2743d
commit
ba95a377b0
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user