mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-03 13:14:18 -07:00
Fix linter and dependency issues
This commit is contained in:
parent
0da80c90d8
commit
3e087a37a4
7 changed files with 619 additions and 730 deletions
|
@ -10,6 +10,7 @@ from data_pipeline.utils import get_module_logger
|
|||
|
||||
logger = get_module_logger(__name__)
|
||||
|
||||
|
||||
class Downloader:
|
||||
"""A simple class to encapsulate the download capabilities of the application"""
|
||||
|
||||
|
@ -44,6 +45,7 @@ class Downloader:
|
|||
file_contents = response.content
|
||||
logger.debug("Downloaded.")
|
||||
else:
|
||||
# pylint: disable-next=broad-exception-raised
|
||||
raise Exception(
|
||||
f"HTTP response {response.status_code} from url {file_url}. Info: {response.content}"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue