From 71c12cdaabbd1bb19d673fee98298c19a6abda6d Mon Sep 17 00:00:00 2001 From: Annick Renevey <47788523+rannick@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:58:33 +0200 Subject: [PATCH] black --- fusion_report/common/net.py | 4 ++-- fusion_report/download.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fusion_report/common/net.py b/fusion_report/common/net.py index 813ff77..198c8ab 100644 --- a/fusion_report/common/net.py +++ b/fusion_report/common/net.py @@ -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 ( @@ -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) diff --git a/fusion_report/download.py b/fusion_report/download.py index 44e1030..b6aa668 100644 --- a/fusion_report/download.py +++ b/fusion_report/download.py @@ -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)