fix(exporter): don't crash when a Text Editor field doesn't have a value
Stacktrace: https://katb.in/rumuxohevar Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
f63abe1b54
commit
f281638156
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ class Exporter:
|
|||
if df.fieldtype == "Duration":
|
||||
value = format_duration(flt(value), df.hide_days)
|
||||
|
||||
if df.fieldtype == "Text Editor":
|
||||
if df.fieldtype == "Text Editor" and value:
|
||||
value = frappe.core.utils.html2text(value)
|
||||
row[i] = value
|
||||
return rows
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue