Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Aug 2, 2024
1 parent 34a21f9 commit 8c4a310
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lindi/LindiH5pyFile/LindiH5pyFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,6 @@ def flush(self):
is_url = self._source_url_or_path.startswith("http://") or self._source_url_or_path.startswith("https://")
if is_url:
raise Exception("Cannot write to URL")
if self._source_tar_file is None:
raise Exception("_source_tar_file is None even though _source_url_or_path is not None")
rfs = self.to_reference_file_system()
if self._source_tar_file:
self._source_tar_file.write_rfs(rfs)
Expand Down
2 changes: 1 addition & 1 deletion lindi/tar/lindi_tar.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,4 @@ def _download_file_byte_range(url: str, start: int, end: int) -> bytes:
}
req = urllib.request.Request(url, headers=headers)
with urllib.request.urlopen(req) as response:
return response.read()
return response.read()

0 comments on commit 8c4a310

Please sign in to comment.