mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-11 09:08:32 +02:00
Use util wrapper for getpass
This allows for tests to run without prompting for user input.
This commit is contained in:
parent
02f853b545
commit
290bb96daa
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class EncryptedJournal(Journal.Journal):
|
|||
filename = filename or self.config['journal']
|
||||
|
||||
if not os.path.exists(filename):
|
||||
password = getpass.getpass("Enter password for new journal: ")
|
||||
password = util.getpass("Enter password for new journal: ")
|
||||
if password:
|
||||
if util.yesno("Do you want to store the password in your keychain?", default=True):
|
||||
util.set_keychain(self.name, password)
|
||||
|
|
Loading…
Add table
Reference in a new issue