mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
remove pylint exceptions (#6927)
* remove pylint exceptions * add changelog frag
This commit is contained in:
parent
cc8e2d676a
commit
4b382ed1df
4 changed files with 9 additions and 13 deletions
|
@ -106,7 +106,7 @@ def del_passphrase(module):
|
|||
try:
|
||||
keyring.delete_password(module.params["service"], module.params["username"])
|
||||
return None
|
||||
except keyring.errors.KeyringLocked as keyring_locked_err: # pylint: disable=unused-variable
|
||||
except keyring.errors.KeyringLocked:
|
||||
delete_argument = (
|
||||
'echo "%s" | gnome-keyring-daemon --unlock\nkeyring del %s %s\n'
|
||||
% (
|
||||
|
@ -140,7 +140,7 @@ def set_passphrase(module):
|
|||
module.params["user_password"],
|
||||
)
|
||||
return None
|
||||
except keyring.errors.KeyringLocked as keyring_locked_err: # pylint: disable=unused-variable
|
||||
except keyring.errors.KeyringLocked:
|
||||
set_argument = (
|
||||
'echo "%s" | gnome-keyring-daemon --unlock\nkeyring set %s %s\n%s\n'
|
||||
% (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue