Skip to content

Commit 45b802e

Browse files
committed
Remove covered VWS error-path exclusions
1 parent 6d4d29e commit 45b802e

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/vws/async_vws.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ async def make_request(
148148
# The Vuforia API returns a 429 response with no JSON body.
149149
raise TooManyRequestsError(response=response)
150150

151-
if (
152-
response.status_code >= HTTPStatus.INTERNAL_SERVER_ERROR
153-
): # pragma: no cover
151+
if response.status_code >= HTTPStatus.INTERNAL_SERVER_ERROR:
154152
raise ServerError(response=response)
155153

156154
result_code = string_field(
@@ -343,7 +341,7 @@ async def wait_for_target_processed(
343341
return
344342

345343
elapsed_time = asyncio.get_event_loop().time() - start_time
346-
if elapsed_time > timeout_seconds: # pragma: no cover
344+
if elapsed_time > timeout_seconds:
347345
raise TargetProcessingTimeoutError
348346

349347
await asyncio.sleep(

src/vws/vws.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ def make_request(
134134
# The Vuforia API returns a 429 response with no JSON body.
135135
raise TooManyRequestsError(response=response)
136136

137-
if (
138-
response.status_code >= HTTPStatus.INTERNAL_SERVER_ERROR
139-
): # pragma: no cover
137+
if response.status_code >= HTTPStatus.INTERNAL_SERVER_ERROR:
140138
raise ServerError(response=response)
141139

142140
result_code = string_field(
@@ -323,7 +321,7 @@ def wait_for_target_processed(
323321
return
324322

325323
elapsed_time = time.monotonic() - start_time
326-
if elapsed_time > timeout_seconds: # pragma: no cover
324+
if elapsed_time > timeout_seconds:
327325
raise TargetProcessingTimeoutError
328326

329327
time.sleep(seconds_between_requests)

0 commit comments

Comments
 (0)