fix(api): Return form_dict if data not parsable
This commit is contained in:
parent
0a47cc0dcd
commit
ca113a7a09
1 changed files with 4 additions and 1 deletions
|
|
@ -159,7 +159,10 @@ def get_request_form_data():
|
|||
else:
|
||||
data = frappe.local.form_dict.data
|
||||
|
||||
return frappe.parse_json(data)
|
||||
try:
|
||||
return frappe.parse_json(data)
|
||||
except ValueError:
|
||||
return frappe.local.form_dict
|
||||
|
||||
|
||||
def validate_auth():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue