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

Former-commit-id: 642e7756a42374eac08df6ce1ec2ac37a803a2ce [formerly 45ee9ff40b]
Former-commit-id: b5e1a2cca9be722ae40e5a8b6b2431251344daac
This commit is contained in:
2022-06-20 03:15:08 -04:00
parent 505ffdb489
commit 5d902f0324
+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()