We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f44ee1 commit 4d70216Copy full SHA for 4d70216
password_generator/password_strength.py
@@ -170,7 +170,9 @@ def check_password_complexity():
170
output = ''
171
172
for missing_feature in missing_security_features_list:
173
- if missing_feature != missing_security_features_list[-1]:
+ if len(missing_security_features_list) == 1:
174
+ output = str(missing_feature)
175
+ elif missing_feature != missing_security_features_list[-1]:
176
output = output + str(missing_feature) + ', '
177
else:
178
output = output + 'and ' + str(missing_feature)
0 commit comments