Skip to content

Commit

Permalink
Don't retry updating as much
Browse files Browse the repository at this point in the history
  • Loading branch information
Technetium1 committed Jun 15, 2021
1 parent ca9de94 commit cbffd43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ChocolateyUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def selfupdate():
updateurl,
headers={"User-Agent": "curl", "Accept": "application/vnd.github.v3+json"},
timeout=urllib3.Timeout(connect=15.0, read=15.0),
retries=4,
retries=3,
redirect=False)
updateresult = json.loads(r.data.decode("utf-8"))
if updateresult.get("tag_name", None) is None:
Expand All @@ -132,7 +132,7 @@ def selfupdate():
elif currentversion == version:
print("\nAlready at latest GitHub release!\n")
else:
print("\nSomething went wrong checking for updates! If this continues report to https://github.com/Technetium1/ChocolateyUpdate\n")
print("\nSomething went wrong checking for updates! If this continues please report to https://github.com/Technetium1/ChocolateyUpdate\n")
system("pause")
raise SystemExit
if updateresult["assets"] and currentversion > version:
Expand Down

0 comments on commit cbffd43

Please sign in to comment.