Commit f918e565 authored by niv-openerp's avatar niv-openerp

More changes

parent cfb0fea0
......@@ -38,6 +38,7 @@ Code repository:
import xmlrpclib
import logging
import socket
import sys
import cPickle as pickle
......@@ -208,10 +209,7 @@ class LocalConnector(Connector):
# OpenERPWarning code 1
# OpenERPException code 2
result = openerp.netsvc.dispatch_rpc(service_name, method, args, None)
except openerp.netsvc.OpenERPDispatcherException, e:
fault = xmlrpclib.Fault(, e.traceback)
raise fault
result = openerp.netsvc.dispatch_rpc(service_name, method, args)
exc_type, exc_value, exc_tb = sys.exc_info()
fault = xmlrpclib.Fault(1, "%s:%s" % (exc_type, exc_value))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment