File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1414
1515from google .api_core import exceptions
1616from google .api_core import retry
17+ from google .auth import exceptions as auth_exceptions
1718import requests .exceptions
1819
1920
2728 exceptions .InternalServerError ,
2829 exceptions .BadGateway ,
2930 requests .exceptions .ConnectionError ,
31+ auth_exceptions .TransportError ,
3032)
3133
3234
Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ def test_w_unstructured_requests_connectionerror(self):
5151 exc = requests .exceptions .ConnectionError ()
5252 self .assertTrue (self ._call_fut (exc ))
5353
54+ def test_w_auth_transporterror (self ):
55+ from google .auth .exceptions import TransportError
56+
57+ exc = TransportError ("testing" )
58+ self .assertTrue (self ._call_fut (exc ))
59+
5460 def test_w_unstructured_too_many_requests (self ):
5561 from google .api_core .exceptions import TooManyRequests
5662
You can’t perform that action at this time.
0 commit comments