Skip to content

Commit ff14272

Browse files
committed
Use new helper
1 parent 17d4844 commit ff14272

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/vws/query.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
from vws.exceptions import MaxNumResultsOutOfRange
99

1010
from ._authorization import authorization_header, rfc_1123_date
11-
# TODO this cannot be private...
12-
from .vws import _raise_for_result_code
11+
from ._result_codes import raise_for_result_code
1312

1413

1514
class CloudRecoService:
@@ -79,5 +78,5 @@ def query(
7978
if 'Accepted range is from 1 to 50 (inclusive).' in response.text:
8079
raise MaxNumResultsOutOfRange(response=response)
8180

82-
_raise_for_result_code(response=response, expected_result_code='Success')
81+
raise_for_result_code(response=response, expected_result_code='Success')
8382
return response.json()['results']

0 commit comments

Comments
 (0)