raise ex
except urllib.error.URLError as err:
ret = [2, str(err), resp_status, resp_Location]
- except Exception as ex:
+ except Exception:
logger.error(traceback.format_exc())
logger.error("[%s]ret=%s" % (callid, str(sys.exc_info())))
res_info = str(sys.exc_info())
'affectedVirtualLinks': [],
'affectedVirtualStorages': [],
'changedExtConnectivity': [],
- 'error': {},
+ 'error': None,
'_links': {
'vnfInstance': {
'href': '%s/vnf_instances/%s' % (const.URL_PREFIX, nfinstid)