Skip to content

Commit cdee05b

Browse files
committed
Merge remote-tracking branch 'origin/master' into query-2
2 parents a8209a4 + d9a1cc7 commit cdee05b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/vws/query.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def query(
8888
data=content,
8989
)
9090

91-
if 'Accepted range is from 1 to 50 (inclusive).' in response.text:
92-
raise MaxNumResultsOutOfRange(response=response)
93-
94-
raise_for_result_code(response=response, expected_result_code='Success')
91+
raise_for_result_code(
92+
response=response,
93+
expected_result_code='Success',
94+
)
9595
return list(response.json()['results'])

tests/test_exceptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ def test_metadata_too_large(
211211
def test_authentication_failure(high_quality_image: io.BytesIO) -> None:
212212
"""
213213
An ``AuthenticationFailure`` exception is raised when the server access key
214-
exists but the server secret key is incorrect.
214+
exists but the server secret key is incorrect, or when a client key is
215+
incorrect.
215216
"""
216217
database = VuforiaDatabase()
217218
with MockVWS() as mock:

0 commit comments

Comments
 (0)