whitelabel
whitelabel copied to clipboard
AttributeError: 'NoneType' object has no attribute 'split'
This happens when I tried the apps on my V13.
Yes. I'm also getting this error while clicking on the save button.
Same here.
Try replacing this line in api.py:
return frappe.db.get_value("Installed Application",{"app_name":"frappe"},"app_version").split('.')[0]
frappe_version = next((item for item in frappe.utils.get_installed_apps_info() if item['app_name'] == 'frappe'), '13.0')
return frappe_version['version'].split('.')[0]
Try replacing this line in api.py:
return frappe.db.get_value("Installed Application",{"app_name":"frappe"},"app_version").split('.')[0]
frappe_version = next((item for item in frappe.utils.get_installed_apps_info() if item['app_name'] == 'frappe'), '13.0') return frappe_version['version'].split('.')[0]
make sure to delete spaces in line 2 and replace with tab