Fixed error when generating a new password entry with no additional arguments

This commit is contained in:
2022-06-20 03:15:08 -04:00
parent a06fc38968
commit 45ee9ff40b
+1 -1
View File
@@ -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()