Skip to content

Commit

Permalink
client: don't retry healthcheck on 403
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Jun 30, 2023
1 parent e354eda commit a32aacb
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 a32aacb

Please sign in to comment.