Fix the pep8 error of unused variable 75/100575/2
authoryangyan <yangyanyj@chinamobile.com>
Wed, 22 Jan 2020 01:15:33 +0000 (09:15 +0800)
committerYan Yang <yangyanyj@chinamobile.com>
Wed, 22 Jan 2020 11:23:17 +0000 (11:23 +0000)
Change-Id: I08cce4c30a824086c0bd7abde18798e563303410
Issue-ID: VFC-1595
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
mgr/mgr/pub/utils/restcall.py

index 3e948a2..567361b 100644 (file)
@@ -70,6 +70,7 @@ def call_req(base_url, user, passwd, auth_type, resource, method, content=''):
         if 'httplib.ResponseNotReady' in res_info:
             res_info = "The URL[%s] request failed or is not responding." % full_url
         ret = [3, res_info, resp_status]
+        logger.debug(ex)
 
     logger.debug("[%s]ret=%s" % (callid, str(ret)))
     return ret