From c325ba38eae4b80165907569a2c422adf8f92281 Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 4 Jun 2022 17:07:41 -0700 Subject: [PATCH] fix linting issue --- jrnl/EncryptedJournal.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jrnl/EncryptedJournal.py b/jrnl/EncryptedJournal.py index f0cd8ebe..fb4ba5ce 100644 --- a/jrnl/EncryptedJournal.py +++ b/jrnl/EncryptedJournal.py @@ -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()