Skip to content

Commit

Permalink
fixing indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
celestialorb committed Sep 8, 2023
1 parent f92b7b3 commit 51c786d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bazelisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ def download(url, destination_path, retries=5, wait_seconds=5):
auth = base64.b64encode(("%s:%s" % (creds[0], creds[2])).encode("ascii"))
request.add_header("Authorization", "Basic %s" % auth.decode("utf-8"))

with closing(urlopen(request)) as response, open(destination_path, "wb") as file:
shutil.copyfileobj(response, file)
return
with closing(urlopen(request)) as response, open(destination_path, "wb") as file:
shutil.copyfileobj(response, file)
return
except Exception:
if retries <= 0:
raise
Expand Down

0 comments on commit 51c786d

Please sign in to comment.