Lead Report Export Error

When I go to the Lead report and click on Export i get the following error:

Traceback (innermost last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 51, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 62, in handle
execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 85, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 708, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/reportview.py”, line 86, in export_query
data = [[‘Sr’] + get_labels(db_query.fields)]
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/reportview.py”, line 111, in get_labels
label = frappe.get_meta(doctype).get_label(fieldname) or fieldname.title()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/meta.py”, line 98, in get_label
return self.get_field(fieldname).label
AttributeError: ‘NoneType’ object has no attribute ‘label’

The Lead Details report in the Standard Reports works and exports fine, but the regular Report in the Lead doctype will not export due to that error (just clicking on Report from the Lead list and then clicking on Export from there).

Works for me alright. Can you share your version what columns are you trying to export?