Using ERPNext 10.1.46
I sporadically get the following error message while typing in the “Set New Password” field in Setup->User.
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 62, in application
response = frappe.handler.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle
data = execute_cmd(cmd)
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 939, in call
return fn(*args, **newargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 582, in test_password_strength
result = _test_password_strength(new_password, user_inputs=user_data)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/password_strength.py", line 15, in test_password_strength
"feedback": get_feedback(result.get('score'), result.get('sequence'))
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/password_strength.py", line 59, in get_feedback
feedback = get_match_feedback(longest_match, len(sequence) == 1)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/password_strength.py", line 156, in get_match_feedback
return (pattern_fn())
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/password_strength.py", line 109, in fun_repeat
if len(match.get("repeated_char")) == 1:
TypeError: object of type 'NoneType' has no len()