def __init__(self, *args, **kwargs):
        """Initialize RequestException with `request` and `response` objects."""
        response = kwargs.pop("response", None)
        self.response = response
        self.request = kwargs.pop("request", None)
        if response is not None and not self.request and hasattr(response, "request"):
            self.request = self.response.request
        super().__init__(*args, **kwargs)
Initialize RequestException with `request` and `response` objects.
Solutions/CyberArkAudit/Data Connectors/.python_packages/lib/site-packages/requests/exceptions.py