Skip to content

Commit cdd35b1

Browse files
committed
Only retry for rate limit errors
Other kinds of errors won't go away after just waiting for a while.
1 parent a138910 commit cdd35b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/import_backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def submit(self, ticket: Ticket) -> int:
229229
# limit us anyway...
230230

231231
def retry_on_exception(exception: Exception) -> bool:
232-
return isinstance(exception, github.GithubException)
232+
return isinstance(exception, github.RateLimitExceededException)
233233

234234
@retrying.retry(
235235
retry_on_exception=retry_on_exception,

0 commit comments

Comments
 (0)