Fix empty password (#3531)

This commit is contained in:
codefiles 2025-05-28 22:13:07 -04:00 committed by GitHub
parent 3da78fcb49
commit e6a9105df4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,9 @@ def get_password(
hide_input=True,
).input()
if allow_skip and not result.has_item():
return None
if allow_skip:
if not result.has_item() or not result.text():
return None
password = Password(plaintext=result.text())