Skip to content

Commit

Permalink
Add missing attempt var in for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
bergsalex committed Sep 16, 2024
1 parent 8dd9109 commit b84012a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def get_ncbo_link(link):
}

response = None
for _ in range(3):
for attempt in range(3):
try:
response = requests.get(link, headers=headers)
response.raise_for_status()
Expand Down

0 comments on commit b84012a

Please sign in to comment.