diff options
author | yangyan <yangyanyj@chinamobile.com> | 2020-01-21 18:01:44 +0800 |
---|---|---|
committer | Yan Yang <yangyanyj@chinamobile.com> | 2020-01-21 14:38:38 +0000 |
commit | 747b0f7752e48064fc2074e9d61f971ed46fbb83 (patch) | |
tree | 7dc82958de63f67faaa7ed4535e15393ac050c27 /zte/vmanager | |
parent | eb6b7be86d0dcd756832adcc46954e0c20c8a08e (diff) |
Fix the pep8 error of unused variable
Change-Id: I5231b43c4bfcca63565c9fbf365d0d9ee1b9852e
Issue-ID: VFC-1595
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'zte/vmanager')
-rw-r--r-- | zte/vmanager/driver/pub/utils/restcall.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zte/vmanager/driver/pub/utils/restcall.py b/zte/vmanager/driver/pub/utils/restcall.py index cc3985ad..74724e16 100644 --- a/zte/vmanager/driver/pub/utils/restcall.py +++ b/zte/vmanager/driver/pub/utils/restcall.py @@ -70,7 +70,9 @@ def call_req(base_url, user, passwd, auth_type, resource, method, content=''): res_info = str(sys.exc_info()) if 'httplib.ResponseNotReady' in res_info: res_info = "The URL[%s] request failed or is not responding." % full_url + logger.debug(ex) ret = [3, res_info, resp_status] + except: logger.error(traceback.format_exc()) ret = [4, str(sys.exc_info()), resp_status] |