Skip to content
Snippets Groups Projects
Commit 2777bd4d authored by Panos Christeas's avatar Panos Christeas
Browse files

Doc Webdav: close cursor on misc exceptions

bzr revid: p_christ@hol.gr-20100812162120-q6q2z3tqqy1nsr95
parent 5b31947d
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,7 @@ class openerp_dav_handler(dav_interface):
raise default_exc(err.strerror)
except Exception,e:
import traceback
if cr: cr.close()
self.parent.log_error("Cannot %s: %s", opname, str(e))
self.parent.log_message("Exc: %s",traceback.format_exc())
raise default_exc("Operation failed")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment