|
20 | 20 | OopsAnErrorOccurredPossiblyBadName, |
21 | 21 | ServerError, |
22 | 22 | TargetProcessingTimeout, |
23 | | - TooManyRequests, |
24 | 23 | ) |
25 | 24 | from vws.exceptions.vws_exceptions import ( |
26 | 25 | AuthenticationFailure, |
|
38 | 37 | TargetQuotaReached, |
39 | 38 | TargetStatusNotSuccess, |
40 | 39 | TargetStatusProcessing, |
| 40 | + TooManyRequests, |
41 | 41 | UnknownTarget, |
42 | 42 | ) |
43 | 43 | from vws.reports import ( |
@@ -169,7 +169,7 @@ def _make_request( |
169 | 169 | character. |
170 | 170 | ~vws.exceptions.custom_exceptions.ServerError: There is an error |
171 | 171 | with Vuforia's servers. |
172 | | - ~vws.exceptions.custom_exceptions.TooManyRequests: Vuforia is rate |
| 172 | + ~vws.exceptions.vws_exceptions.TooManyRequests: Vuforia is rate |
173 | 173 | limiting access. |
174 | 174 | json.decoder.JSONDecodeError: The server did not respond with valid |
175 | 175 | JSON. This may happen if the server address is not a valid |
@@ -280,7 +280,7 @@ def add_target( |
280 | 280 | includes a bad character. |
281 | 281 | ~vws.exceptions.custom_exceptions.ServerError: There is an error |
282 | 282 | with Vuforia's servers. |
283 | | - ~vws.exceptions.custom_exceptions.TooManyRequests: Vuforia is rate |
| 283 | + ~vws.exceptions.vws_exceptions.TooManyRequests: Vuforia is rate |
284 | 284 | limiting access. |
285 | 285 | """ |
286 | 286 | image_data = _get_image_data(image=image) |
@@ -330,7 +330,7 @@ def get_target_record(self, target_id: str) -> TargetStatusAndRecord: |
330 | 330 | error with the time sent to Vuforia. |
331 | 331 | ~vws.exceptions.custom_exceptions.ServerError: There is an error |
332 | 332 | with Vuforia's servers. |
333 | | - ~vws.exceptions.custom_exceptions.TooManyRequests: Vuforia is rate |
| 333 | + ~vws.exceptions.vws_exceptions.TooManyRequests: Vuforia is rate |
334 | 334 | limiting access. |
335 | 335 | """ |
336 | 336 | response = self._make_request( |
@@ -391,7 +391,7 @@ def wait_for_target_processed( |
391 | 391 | error with the time sent to Vuforia. |
392 | 392 | ~vws.exceptions.custom_exceptions.ServerError: There is an error |
393 | 393 | with Vuforia's servers. |
394 | | - ~vws.exceptions.custom_exceptions.TooManyRequests: Vuforia is rate |
| 394 | + ~vws.exceptions.vws_exceptions.TooManyRequests: Vuforia is rate |
395 | 395 | limiting access. |
396 | 396 | """ |
397 | 397 | start_time = time.monotonic() |
@@ -426,7 +426,7 @@ def list_targets(self) -> list[str]: |
426 | 426 | error with the time sent to Vuforia. |
427 | 427 | ~vws.exceptions.custom_exceptions.ServerError: There is an error |
428 | 428 | with Vuforia's servers. |
429 | | - ~vws.exceptions.custom_exceptions.TooManyRequests: Vuforia is rate |
| 429 | + ~vws.exceptions.vws_exceptions.TooManyRequests: Vuforia is rate |
430 | 430 | limiting access. |
431 | 431 | """ |
432 | 432 | response = self._make_request( |
@@ -463,7 +463,7 @@ def get_target_summary_report(self, target_id: str) -> TargetSummaryReport: |
463 | 463 | error with the time sent to Vuforia. |
464 | 464 | ~vws.exceptions.custom_exceptions.ServerError: There is an error |
465 | 465 | with Vuforia's servers. |
466 | | - ~vws.exceptions.custom_exceptions.TooManyRequests: Vuforia is rate |
| 466 | + ~vws.exceptions.vws_exceptions.TooManyRequests: Vuforia is rate |
467 | 467 | limiting access. |
468 | 468 | """ |
469 | 469 | response = self._make_request( |
@@ -506,7 +506,7 @@ def get_database_summary_report(self) -> DatabaseSummaryReport: |
506 | 506 | error with the time sent to Vuforia. |
507 | 507 | ~vws.exceptions.custom_exceptions.ServerError: There is an error |
508 | 508 | with Vuforia's servers. |
509 | | - ~vws.exceptions.custom_exceptions.TooManyRequests: Vuforia is rate |
| 509 | + ~vws.exceptions.vws_exceptions.TooManyRequests: Vuforia is rate |
510 | 510 | limiting access. |
511 | 511 | """ |
512 | 512 | response = self._make_request( |
@@ -556,7 +556,7 @@ def delete_target(self, target_id: str) -> None: |
556 | 556 | error with the time sent to Vuforia. |
557 | 557 | ~vws.exceptions.custom_exceptions.ServerError: There is an error |
558 | 558 | with Vuforia's servers. |
559 | | - ~vws.exceptions.custom_exceptions.TooManyRequests: Vuforia is rate |
| 559 | + ~vws.exceptions.vws_exceptions.TooManyRequests: Vuforia is rate |
560 | 560 | limiting access. |
561 | 561 | """ |
562 | 562 | self._make_request( |
@@ -593,7 +593,7 @@ def get_duplicate_targets(self, target_id: str) -> list[str]: |
593 | 593 | error with the time sent to Vuforia. |
594 | 594 | ~vws.exceptions.custom_exceptions.ServerError: There is an error |
595 | 595 | with Vuforia's servers. |
596 | | - ~vws.exceptions.custom_exceptions.TooManyRequests: Vuforia is rate |
| 596 | + ~vws.exceptions.vws_exceptions.TooManyRequests: Vuforia is rate |
597 | 597 | limiting access. |
598 | 598 | """ |
599 | 599 | response = self._make_request( |
@@ -656,7 +656,7 @@ def update_target( |
656 | 656 | error with the time sent to Vuforia. |
657 | 657 | ~vws.exceptions.custom_exceptions.ServerError: There is an error |
658 | 658 | with Vuforia's servers. |
659 | | - ~vws.exceptions.custom_exceptions.TooManyRequests: Vuforia is rate |
| 659 | + ~vws.exceptions.vws_exceptions.TooManyRequests: Vuforia is rate |
660 | 660 | limiting access. |
661 | 661 | """ |
662 | 662 | data: dict[str, str | bool | float | int] = {} |
|
0 commit comments