Skip to content

Commit 56d5dab

Browse files
committed
Test
1 parent db7c7a2 commit 56d5dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pysonar_scanner/jre.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __download_jre(self, jre: JRE) -> Optional[pathlib.Path]:
103103
cache_file = self.cache.get_file(jre.filename, jre.sha256)
104104
cache_file.filepath.unlink(missing_ok=True)
105105

106-
with cache_file.open(mode="wb") as f:
106+
with open(cache_file.filepath, mode="wb") as f:
107107
if jre.download_url is not None:
108108
self.api.download_file_from_url(jre.download_url, f)
109109
elif jre.id is not None:

0 commit comments

Comments
 (0)