File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ # Version 3.37.0 (2023-xx-xx)
4+ ## Fixed
5+ * Retry connection timeouts
6+
37# Version 3.36.1 (2023-01-24)
48### Fixed
59* ` confidence ` is now optional for TextEntity
Original file line number Diff line number Diff line change @@ -97,7 +97,8 @@ def __init__(self,
9797 self ._data_row_metadata_ontology = None
9898
9999 @retry .Retry (predicate = retry .if_exception_type (
100- labelbox .exceptions .InternalServerError ))
100+ labelbox .exceptions .InternalServerError ,
101+ labelbox .exceptions .TimeoutError ))
101102 def execute (self ,
102103 query = None ,
103104 params = None ,
Original file line number Diff line number Diff line change 22import os
33import time
44import pytest
5+ from google .api_core .exceptions import RetryError
56
67from labelbox import Project , Dataset , User
78import labelbox .client
@@ -43,12 +44,12 @@ def test_semantic_error(client):
4344
4445
4546def test_timeout_error (client , project ):
46- with pytest .raises (labelbox . exceptions . TimeoutError ) as excinfo :
47- query_str = """query getOntology {
48- project (where: {id: %s}) {
49- ontology {
50- normalized
51- }
47+ with pytest .raises (RetryError ) as excinfo :
48+ query_str = """query getOntology {
49+ project (where: {id: %s}) {
50+ ontology {
51+ normalized
52+ }
5253 }
5354 } """ % (project .uid )
5455
You can’t perform that action at this time.
0 commit comments