fix(reportview): use .pop instead of del
- use .pop() instead of del to avoid KeyError
This commit is contained in:
parent
78c3a5de2d
commit
bc05377352
1 changed files with 2 additions and 2 deletions
|
|
@ -27,8 +27,8 @@ def get_form_params():
|
|||
"""Stringify GET request parameters."""
|
||||
data = frappe._dict(frappe.local.form_dict)
|
||||
|
||||
del data["cmd"]
|
||||
del data["data"]
|
||||
data.pop('cmd', None)
|
||||
data.pop('data', None)
|
||||
|
||||
if "csrf_token" in data:
|
||||
del data["csrf_token"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue