Fix the pep8 error of unused variable 32/100532/2
authoryangyan <yangyanyj@chinamobile.com>
Tue, 21 Jan 2020 10:01:44 +0000 (18:01 +0800)
committerYan Yang <yangyanyj@chinamobile.com>
Tue, 21 Jan 2020 14:38:38 +0000 (14:38 +0000)
Change-Id: I5231b43c4bfcca63565c9fbf365d0d9ee1b9852e
Issue-ID: VFC-1595
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
zte/vmanager/driver/pub/utils/restcall.py

index cc3985a..74724e1 100644 (file)
@@ -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]