Skip to content

Commit 07b20f7

Browse files
authored
Merge pull request #3235 from chaoss/github-api-fix
Fix variable name in _decide_retry_policy
2 parents 9447562 + c45d53b commit 07b20f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

augur/tasks/github/util/github_data_access.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def _decide_retry_policy(exception: Exception) -> bool:
170170
Returns:
171171
bool: Boolean describing whether or not the request should be retried
172172
"""
173-
return not isinstance(num, (UrlNotFoundException, ResourceGoneException))
173+
return not isinstance(exception, (UrlNotFoundException, ResourceGoneException))
174174

175175
@retry(stop=stop_after_attempt(10), wait=wait_fixed(5), retry=retry_if_exception(_decide_retry_policy))
176176
def __make_request_with_retries(self, url, method="GET", timeout=100):

0 commit comments

Comments
 (0)