fix linting issue

This commit is contained in:
Jonathan Wren 2022-06-04 17:07:41 -07:00
parent 34df64c989
commit c325ba38ea

View file

@ -45,9 +45,10 @@ def decrypt_content(
keychain: str = None, keychain: str = None,
max_attempts: int = 3, max_attempts: int = 3,
) -> str: ) -> str:
get_pw = lambda: print_msg( def get_pw():
Message(MsgText.Password, MsgStyle.PROMPT), get_input=True, hide_input=True return print_msg(
) Message(MsgText.Password, MsgStyle.PROMPT), get_input=True, hide_input=True
)
pwd_from_keychain = keychain and get_keychain(keychain) pwd_from_keychain = keychain and get_keychain(keychain)
password = pwd_from_keychain or get_pw() password = pwd_from_keychain or get_pw()