allow null username/password in bw script

This commit is contained in:
user202729 2023-03-09 08:39:45 +07:00
parent 9b59cd02cb
commit bab306d82f
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ def main(arguments):
if len(candidates) == 1:
selection = candidates.pop()
else:
choices = ['{:s} | {:s}'.format(c['name'], c['login']['username']) for c in candidates]
choices = ['{:s} | {:s}'.format(c['name'] or "?", c['login']['username'] or "?") for c in candidates]
choice = dmenu(choices, arguments.dmenu_invocation, arguments.io_encoding)
choice_tokens = choice.split('|')
choice_name = choice_tokens[0].strip()