mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 11:38:32 +02:00
fix linting issue
This commit is contained in:
parent
34df64c989
commit
c325ba38ea
1 changed files with 4 additions and 3 deletions
|
@ -45,9 +45,10 @@ def decrypt_content(
|
|||
keychain: str = None,
|
||||
max_attempts: int = 3,
|
||||
) -> str:
|
||||
get_pw = lambda: print_msg(
|
||||
Message(MsgText.Password, MsgStyle.PROMPT), get_input=True, hide_input=True
|
||||
)
|
||||
def get_pw():
|
||||
return print_msg(
|
||||
Message(MsgText.Password, MsgStyle.PROMPT), get_input=True, hide_input=True
|
||||
)
|
||||
|
||||
pwd_from_keychain = keychain and get_keychain(keychain)
|
||||
password = pwd_from_keychain or get_pw()
|
||||
|
|
Loading…
Add table
Reference in a new issue