Skip to content

Commit

Permalink
attempt 2 at fixing windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zoghbi-a committed Oct 16, 2023
1 parent 5cb9c18 commit 5bbeff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyvo/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def http_download(url,
length = None

if cache and os.path.exists(local_filepath):
with open(local_filepath, 'rb'):
with open(local_filepath, 'rb') as fp:
fp.seek(0, os.SEEK_END)
local_size = fp.tell()
if length is not None and local_size != length:
Expand Down Expand Up @@ -236,7 +236,7 @@ def aws_download(uri=None,
if cache and os.path.exists(local_filepath):

if length is not None:
with open(local_filepath, 'rb'):
with open(local_filepath, 'rb') as fp:
fp.seek(0, os.SEEK_END)
local_size = fp.tell()
if local_size == length:
Expand Down

0 comments on commit 5bbeff3

Please sign in to comment.