Skip to content

Commit

Permalink
Merge pull request #1589 from materialsproject/dev
Browse files Browse the repository at this point in the history
client: don't retry healthcheck on 403
  • Loading branch information
tschaume authored Jun 30, 2023
2 parents e354eda + a32aacb commit 05a0827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ def _version(url):
while retries < max_retries:
try:
r = requests.get(f"{url}/healthcheck", timeout=5)
if r.status_code == 200:
if r.status_code in {200, 403}:
return r.json().get("version")
else:
retries += 1
Expand Down

0 comments on commit 05a0827

Please sign in to comment.