ERPNext launchs error when it is sent email in its last version (10.1.26)

Hi everybody.

Currently I’m using send email from core in a visual way, I mean I use “email alert” in configuration. When it is sent with frappe 10.1.6 and erpnext 10.1.13 all is OK.

Now I migrated to last version frappe 10.1.35 and erpnext 10.1.126 it launchs the next error:

Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
doc.save()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 260, in save
return self._save(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 283, in _save
self.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 243, in insert
self.run_method("after_insert")
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 767, in run_method
self.run_email_alerts(method)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 817, in run_email_alerts
_evaluate_alert(alert)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 798, in _evaluate_alert
evaluate_alert(self, alert.name, alert.event)
File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_alert/email_alert.py", line 271, in evaluate_alert
frappe.log_error(message=frappe.get_traceback(), title=str(e))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 27: ordinal not in range(128)

request.js:315 Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 62, in application
response = frappe.handler.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle
data = execute_cmd(cmd)
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 942, in call
return fn(args, **newargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
doc.save()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 260, in save
return self._save(args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 283, in _save
self.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 243, in insert
self.run_method("after_insert")
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 767, in run_method
self.run_email_alerts(method)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 817, in run_email_alerts
_evaluate_alert(alert)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 798, in _evaluate_alert
evaluate_alert(self, alert.name, alert.event)
File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_alert/email_alert.py", line 271, in evaluate_alert
frappe.log_error(message=frappe.get_traceback(), title=str(e))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 27: ordinal not in range(128)

Can you say me if in the last version of frappe and erpnext something changed?

Thanks in advanced

Please share the configuration of your email alert. It seems there is some problem evaluating the condition expression.

In the field “condition” I set this expression: doc.status==“Pending”

I attach the screenshot about I’m talking about.

Thanks

I just tried creating an Email Alert and it worked perfectly fine.

ERPNext: v10.1.35 (master)
Frappe Framework: v10.1.33 (master)

Propably like the error I get . Greek instalation.

Different version but I believe the source of evil is the same.

Maybe this will help you .
I will try for my error.