Check if current user has System Manager role or not

Check if current user has System Manager role or not

if “System Manager” not in frappe.get_roles(frappe.session.user):
msgprint(‘testing’)

I get TypeError: ‘NoneType’ object is not callable

Hello,

Can you provide the whole error log for the community to dig into?

Regards,

Ivan

I am new to erpnext and using server script window on version 12. Can you please guide where to find error log on system.