diff --git a/tap_salesforce/salesforce/__init__.py b/tap_salesforce/salesforce/__init__.py index 797aedf1..475757b7 100644 --- a/tap_salesforce/salesforce/__init__.py +++ b/tap_salesforce/salesforce/__init__.py @@ -13,8 +13,7 @@ from tap_salesforce.salesforce.rest import Rest from tap_salesforce.salesforce.exceptions import ( TapSalesforceException, - TapSalesforceQuotaExceededException, - TapSalesforceHTTPException) + TapSalesforceQuotaExceededException) LOGGER = singer.get_logger() @@ -275,7 +274,7 @@ def _make_request(self, http_method, url, headers=None, body=None, stream=False, try: resp.raise_for_status() except RequestException as ex: - raise TapSalesforceHTTPException("Error response from Salesforce") from ex + raise ex if resp.headers.get('Sforce-Limit-Info') is not None: self.rest_requests_attempted += 1 diff --git a/tap_salesforce/salesforce/exceptions.py b/tap_salesforce/salesforce/exceptions.py index d6f003e3..ff18c014 100644 --- a/tap_salesforce/salesforce/exceptions.py +++ b/tap_salesforce/salesforce/exceptions.py @@ -6,7 +6,3 @@ class TapSalesforceException(Exception): class TapSalesforceQuotaExceededException(TapSalesforceException): pass - - -class TapSalesforceHTTPException(TapSalesforceException): - pass