summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/pub/utils/restcall.py
diff options
context:
space:
mode:
authordyh <dengyuanhong@chinamobile.com>2021-02-07 11:24:46 +0800
committerdyh <dengyuanhong@chinamobile.com>2021-02-07 11:25:37 +0800
commit3bd4752aeb947d60b86bc2478dd594dc5e202d4f (patch)
treec58a7d20d70b072ebbaf8948a68a58202e399df5 /lcm/lcm/pub/utils/restcall.py
parentb8dc81c09492daf50eb247172b5c75ceb4f113cc (diff)
Remove dependency on onaplogging in vnflcm
Change-Id: I176533e844f58cb877111f3d90f1d8869f14ac11 Issue-ID: VFC-1809 Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'lcm/lcm/pub/utils/restcall.py')
-rw-r--r--lcm/lcm/pub/utils/restcall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/lcm/pub/utils/restcall.py b/lcm/lcm/pub/utils/restcall.py
index 8a9010c2..d1ebcc0c 100644
--- a/lcm/lcm/pub/utils/restcall.py
+++ b/lcm/lcm/pub/utils/restcall.py
@@ -65,7 +65,7 @@ def call_req(base_url, user, passwd, auth_type, resource, method, content='', ad
raise ex
except urllib.error.URLError as err:
ret = [2, str(err), resp_status]
- 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())