code: def _send_request_safe_mode(self, method, url, **kwargs):
          
          try:
              msg = "processed request:\n"
              msg += "> {method} {url}\n".format(method=method, url=url)
              msg += "> kwargs: {kwargs}".format(kwargs=kwargs)
              logger.log_debug(msg)
              return requests.Session.request(self, method, url, **kwargs)
          except (MissingSchema, InvalidSchema, InvalidURL):
              raise
          except RequestException as ex:
              resp = ApiResponse()
              resp.error = ex
              resp.status_code = 0  # with this status_code, content returns None
              resp.request = Request(method, url).prepare()
              return resp
docs: Send a HTTP request, and catch any exception that might occur due to connection problems.
          Safe mode has been removed from requests 1.x.