Skip to content

Commit 9bf49f5

Browse files
fix: add InternalServerError to list of expected errors (#151)
1 parent 92b287f commit 9bf49f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/system/test_system.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from google.api_core.exceptions import BadGateway
2222
from google.api_core.exceptions import Conflict
23+
from google.api_core.exceptions import InternalServerError
2324
from google.api_core.exceptions import NotFound
2425
from google.api_core.exceptions import TooManyRequests
2526
from google.api_core.exceptions import ResourceExhausted
@@ -68,7 +69,9 @@ def _list_entries(logger):
6869
:returns: List of all entries consumed.
6970
"""
7071
inner = RetryResult(_has_entries, max_tries=9)(_consume_entries)
71-
outer = RetryErrors((ServiceUnavailable, ResourceExhausted), max_tries=9)(inner)
72+
outer = RetryErrors(
73+
(ServiceUnavailable, ResourceExhausted, InternalServerError), max_tries=9
74+
)(inner)
7275
return outer(logger)
7376

7477

0 commit comments

Comments
 (0)