Revert "requests exception"
This reverts commit ff8c13969e.
Fixes https://pagure.io/koji/issue/2786
This commit is contained in:
parent
fa1e3f833d
commit
c71ebec58a
1 changed files with 0 additions and 11 deletions
|
|
@ -59,7 +59,6 @@ import six.moves.http_client
|
|||
import six.moves.urllib
|
||||
from requests.adapters import HTTPAdapter
|
||||
from requests.packages.urllib3.util.retry import Retry
|
||||
from requests.exceptions import RequestException
|
||||
from six.moves import range, zip
|
||||
|
||||
from koji.xmlrpcplus import Fault, dumps, getparser, loads, xmlrpc_client
|
||||
|
|
@ -2756,16 +2755,6 @@ class ClientSession(object):
|
|||
# (depending on the python version, these may or may not be subclasses of
|
||||
# Exception)
|
||||
raise
|
||||
except RequestException as e:
|
||||
_err_res = e.response
|
||||
_err_req = e.request
|
||||
if _err_res:
|
||||
_values = (_err_res.status_code, _err_res.text, str(_err_res))
|
||||
self.logger.error('Response error: %s::%s::%s' % _values)
|
||||
else:
|
||||
_values = (_err_req.method, _err_req.url, str(_err_req))
|
||||
self.logger.error('Request error: %s::%s::%s' % _values)
|
||||
raise
|
||||
except Exception as e:
|
||||
tb_str = ''.join(traceback.format_exception(*sys.exc_info()))
|
||||
self.new_session()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue