We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91266ed commit f7aa659Copy full SHA for f7aa659
scripts/import_backends.py
@@ -229,7 +229,10 @@ def submit(self, ticket: Ticket) -> int:
229
# limit us anyway...
230
231
def retry_on_exception(exception: Exception) -> bool:
232
- return isinstance(exception, github.RateLimitExceededException)
+ if isinstance(exception, github.RateLimitExceededException):
233
+ print("... GitHub Rate Limited ...")
234
+ return True
235
+ return False
236
237
@retrying.retry(
238
retry_on_exception=retry_on_exception,
@@ -251,7 +254,6 @@ def create_issue() -> github.Issue.Issue:
251
254
isinstance(message, str)
252
255
and RATE_LIMIT_MESSAGE in message
253
256
):
- print("... GitHub Rate Limited ...")
257
raise github.RateLimitExceededException(
258
status=e.status,
259
data=e.data,
0 commit comments