X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=catalog%2Fpub%2Futils%2Frestcall.py;h=4348c490ecbff010061f29f4fd2f02b87d1d14f1;hb=d02cb50e7c2ce79d6afeab60725933ab86ccbab4;hp=1499f8f08370f254a03c96ff901569b31d397f29;hpb=ac2f763bcf8ed41d9f2867a33b29860318854502;p=modeling%2Fetsicatalog.git 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())