mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-28 12:56:28 -04:00
Fixed error when generating a new password entry with no additional arguments
This commit is contained in:
@@ -545,7 +545,7 @@ def gen(): # generates a password for a new or an existing entry
|
||||
s_exit(1)
|
||||
_username = str(input('username: '))
|
||||
_password = pass_gen()
|
||||
if len(argument_list) > 1 and (not argument_list[1] == 'update' and not argument_list[1] == '-u'):
|
||||
if len(argument_list) == 1 or (not argument_list[1] == 'update' and not argument_list[1] == '-u'):
|
||||
_url = str(input('url: '))
|
||||
_add_note = input('add a note to this entry? (y/N) ')
|
||||
_shm_folder, _shm_entry = shm_gen()
|
||||
|
||||
Reference in New Issue
Block a user