Skip to content

Commit 4d70216

Browse files
committed
Corrected another typo
1 parent 1f44ee1 commit 4d70216

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

password_generator/password_strength.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ def check_password_complexity():
170170
output = ''
171171

172172
for missing_feature in missing_security_features_list:
173-
if missing_feature != missing_security_features_list[-1]:
173+
if len(missing_security_features_list) == 1:
174+
output = str(missing_feature)
175+
elif missing_feature != missing_security_features_list[-1]:
174176
output = output + str(missing_feature) + ', '
175177
else:
176178
output = output + 'and ' + str(missing_feature)

0 commit comments

Comments
 (0)