File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Original file line number Diff line number Diff line change 16
16
import logging
17
17
import unittest
18
18
19
+ from google .api_core .exceptions import Conflict
20
+ from google .api_core .exceptions import NotFound
21
+ from google .api_core .exceptions import TooManyRequests
22
+ from google .api_core .exceptions import ResourceExhausted
23
+ from google .api_core .exceptions import ServiceUnavailable
19
24
from google .cloud ._helpers import UTC
20
- from google .cloud .exceptions import Conflict
21
- from google .cloud .exceptions import NotFound
22
- from google .cloud .exceptions import TooManyRequests
23
- from google .cloud .exceptions import ServiceUnavailable
24
25
import google .cloud .logging
25
26
import google .cloud .logging .handlers .handlers
26
27
from google .cloud .logging .handlers .handlers import CloudLoggingHandler
@@ -63,7 +64,7 @@ def _list_entries(logger):
63
64
:returns: List of all entries consumed.
64
65
"""
65
66
inner = RetryResult (_has_entries )(_consume_entries )
66
- outer = RetryErrors (ServiceUnavailable )(inner )
67
+ outer = RetryErrors (( ServiceUnavailable , ResourceExhausted ) )(inner )
67
68
return outer (logger )
68
69
69
70
You can’t perform that action at this time.
0 commit comments