Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
rannick committed Oct 4, 2024
1 parent e05d729 commit 71c12cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fusion_report/common/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_large_file(url: str, no_ssl) -> None:
LOG.info(f"Downloading {url}")
try:
headers = {"User-Agent": "Mozilla/5.0"}
response = requests.get(url, headers=headers, stream=True, verify = no_ssl)
response = requests.get(url, headers=headers, stream=True, verify=no_ssl)
file = url.split("/")[-1].split("?")[0]

if (
Expand Down Expand Up @@ -130,7 +130,7 @@ def get_cosmic_from_sanger(token: str, return_err: List[str], no_ssl) -> None:
),
}
try:
res = requests.get(url, headers=headers, verify = no_ssl)
res = requests.get(url, headers=headers, verify=no_ssl)
auth_url: str = res.json()["url"]
LOG.info(f"auth_url: {auth_url}")
Net.get_large_file(auth_url, no_ssl)
Expand Down
4 changes: 3 additions & 1 deletion fusion_report/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def download_all(self, params: Namespace) -> None:
self.validate(params)
if params.qiagen:
Logger(__name__).info("Downloading resources from QIAGEN...")
Net.get_cosmic_from_qiagen(self.cosmic_token, return_err, params.output, params.no_ssl)
Net.get_cosmic_from_qiagen(
self.cosmic_token, return_err, params.output, params.no_ssl
)
else:
Logger(__name__).info("Downloading resources from SANGER...")
Net.get_cosmic_from_sanger(self.cosmic_token, return_err, params.no_ssl)
Expand Down

0 comments on commit 71c12cd

Please sign in to comment.