mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 03:58:32 +02:00
Merge 4fa6e6ff09
into 9ffca1a7a6
This commit is contained in:
commit
42dbfa7f06
1 changed files with 6 additions and 1 deletions
|
@ -28,7 +28,12 @@ log = logging.getLogger(__name__)
|
|||
|
||||
def getpass(prompt="Password: "):
|
||||
if not TEST:
|
||||
return gp.getpass(prompt)
|
||||
try:
|
||||
passwd = gp.getpass(prompt)
|
||||
except TypeError:
|
||||
passwd = gp.getpass(prompt.encode('ascii', 'ignore'))
|
||||
|
||||
return passwd
|
||||
else:
|
||||
return py23_input(prompt)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue