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 4fca600 commit 0bcccc7Copy full SHA for 0bcccc7
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