[hotfix] assign patch

This commit is contained in:
Anand Doshi 2014-09-04 15:55:24 +05:30
parent 76d5075bbc
commit 69f40f8080

View file

@ -3,4 +3,8 @@ import frappe
def execute():
for name in frappe.db.sql_list("""select name from `tabToDo`
where ifnull(reference_type, '')!='' and ifnull(reference_name, '')!=''"""):
frappe.get_doc("ToDo", name).on_update()
try:
frappe.get_doc("ToDo", name).on_update()
except Exception, e:
if e.args[0]!=1146:
raise