log error on saving doclist in cms2 patch

This commit is contained in:
Anand Doshi 2012-07-12 23:38:31 +05:30
parent af1f437fad
commit 4659b1eb25

View File

@ -66,10 +66,14 @@ def save_pages():
import webnotes
from webnotes.model.doclist import DocList
import webnotes.modules.patch_handler
for dt in query_map:
for result in webnotes.conn.sql(query_map[dt], as_dict=1):
DocList(dt, result['name']).save()
try:
DocList(dt, result['name']).save()
except Exception, e:
webnotes.modules.patch_handler.log(str(e))
def save_website_settings():
from webnotes.model.code import get_obj