fix(rate_limiter): we can't call str.join([]) with NoneTypes in the list

Default to an empty string for `user_key`

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-08-22 14:25:03 +05:30
parent 43385060e1
commit ad0a9106de
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -126,7 +126,7 @@ def rate_limit(
ip = frappe.local.request_ip if ip_based is True else None
user_key = frappe.form_dict.get(key)
user_key = frappe.form_dict.get(key, "")
identity = None