mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-01 22:57:17 -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)
|
s_exit(1)
|
||||||
_username = str(input('username: '))
|
_username = str(input('username: '))
|
||||||
_password = pass_gen()
|
_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: '))
|
_url = str(input('url: '))
|
||||||
_add_note = input('add a note to this entry? (y/N) ')
|
_add_note = input('add a note to this entry? (y/N) ')
|
||||||
_shm_folder, _shm_entry = shm_gen()
|
_shm_folder, _shm_entry = shm_gen()
|
||||||
|
|||||||
Reference in New Issue
Block a user