Skip to content

Commit

Permalink
fix build (#15068)
Browse files Browse the repository at this point in the history
  • Loading branch information
girarda committed Jul 27, 2022
1 parent 8b763cc commit 2695c0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#


class ReadException(Exception):
"""
Raise when there is an error reading data from an API Source
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import pytest
import requests
from airbyte_cdk.models import SyncMode
from airbyte_cdk.sources.declarative.read_exception import ReadException
from airbyte_cdk.sources.declarative.requesters.error_handlers.response_action import ResponseAction
from airbyte_cdk.sources.declarative.requesters.error_handlers.response_status import ResponseStatus
from airbyte_cdk.sources.declarative.requesters.request_option import RequestOptionType
Expand Down Expand Up @@ -136,7 +137,7 @@ def test_parse_response(test_name, status_code, response_status, len_expected_re
try:
retriever.parse_response(response, stream_state={})
assert False
except requests.exceptions.HTTPError:
except ReadException:
pass
else:
records = retriever.parse_response(response, stream_state={})
Expand Down

0 comments on commit 2695c0c

Please sign in to comment.