minor fix in newsletter patch
diff --git a/erpnext/patches/v5_0/newsletter.py b/erpnext/patches/v5_0/newsletter.py
index 223fb2b..2b42b43 100644
--- a/erpnext/patches/v5_0/newsletter.py
+++ b/erpnext/patches/v5_0/newsletter.py
@@ -19,8 +19,9 @@
 		frappe.get_doc({"doctype": "Role", "role": "Newsletter Manager"}).insert()
 
 	for userrole in frappe.get_all("UserRole", "parent", {"role": "Sales Manager"}):
-		user = frappe.get_doc("User", userrole.parent)
-		user.add_roles("Newsletter Manager")
+		if frappe.db.exists("User", userrole.parent):
+			user = frappe.get_doc("User", userrole.parent)
+			user.add_roles("Newsletter Manager")
 
 	# create default lists
 	general = frappe.new_doc("Newsletter List")