Skip to content

Commit a7c4407

Browse files
author
github-actions
committed
fix 404 retry
1 parent 6152227 commit a7c4407

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bbot/modules/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ def _prepare_api_iter_req(self, url, page, page_size, offset, **requests_kwargs)
12041204

12051205
def _api_response_is_success(self, r):
12061206
# 404s typically indicate no data rather than an actual error with the API, so we don't want to retry them
1207-
return getattr(r, "is_success", False) and not getattr(r, "status_code", 0) == 404
1207+
return getattr(r, "is_success", False) or getattr(r, "status_code", 0) == 404
12081208

12091209
async def api_page_iter(self, url, page_size=100, _json=True, next_key=None, iter_key=None, **requests_kwargs):
12101210
"""

0 commit comments

Comments
 (0)