diff options
author | 2020-04-16 14:58:06 +0800 | |
---|---|---|
committer | 2020-04-16 15:35:28 +0800 | |
commit | d02cb50e7c2ce79d6afeab60725933ab86ccbab4 (patch) | |
tree | 76b0f02b7c1086f4379a5fc39bb09ec1cabf7b05 /catalog/pub | |
parent | ac2f763bcf8ed41d9f2867a33b29860318854502 (diff) |
fix bug: Failed to fetch NS package from SDC when having VL resource
Change-Id: I13bbbd1ce1a97348c99ad86b0d78dcefbd6bc7f6
Issue-ID: MODELING-354
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'catalog/pub')
-rw-r--r-- | catalog/pub/utils/restcall.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog/pub/utils/restcall.py b/catalog/pub/utils/restcall.py index 1499f8f..4348c49 100644 --- a/catalog/pub/utils/restcall.py +++ b/catalog/pub/utils/restcall.py @@ -68,7 +68,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()) |