Skip to content

Commit 1bf33f9

Browse files
fix
1 parent 978241c commit 1bf33f9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • src/snakemake_storage_plugin_github_artifact

src/snakemake_storage_plugin_github_artifact/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from urllib.parse import urlparse
77
from typing import Any, Iterable, Optional, List
88
import subprocess as sp
9+
import tempfile
10+
import shutil
911

1012
import requests
1113

@@ -212,7 +214,10 @@ def retrieve_object(self):
212214
assert self._artifact is not None
213215
download_url = self._artifact["archive_download_url"]
214216
res = requests.get(
215-
download_url, headers=self._headers(accept="application/vnd.github+json"), allow_redirects=True, stream=True
217+
download_url,
218+
headers=self._headers(accept="application/vnd.github+json"),
219+
allow_redirects=True,
220+
stream=True,
216221
)
217222
res.raise_for_status()
218223
# print(res.headers)

0 commit comments

Comments
 (0)