[fix] remove print statements to not raise unicode issues

This commit is contained in:
Prateeksha Singh 2018-11-28 13:43:28 +05:30
parent ec9eb6d3ad
commit bf57a4d201

View file

@ -384,10 +384,10 @@ def make_records(records, debug=False):
time_end = time()
exec_time_str = ": {0} sec".format(round(time_end - time_start, 2))
print("Inserted {0} {1}".format(doctype, doc.name) + exec_time_str)
# print("Inserted {0} {1}".format(doctype, doc.name) + exec_time_str)
except frappe.DuplicateEntryError as e:
print("Failed to insert duplicate {0} {1}".format(doctype, doc.name))
# print("Failed to insert duplicate {0} {1}".format(doctype, doc.name))
# pass DuplicateEntryError and continue
if e.args and e.args[0]==doc.doctype and e.args[1]==doc.name:
@ -397,7 +397,7 @@ def make_records(records, debug=False):
raise
except Exception as e:
print("Failed to insert {0} {1}".format(doctype, doc.name))
# print("Failed to insert {0} {1}".format(doctype, doc.name))
exception = record.get('__exception')
if exception: