mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-02 10:44:20 -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}"
|
||||
)
|
||||
|
|
|
@ -39,6 +39,7 @@ def _choose_best_mask(
|
|||
for mask in masks_in_priority_order:
|
||||
if any(geo_df[mask][column_to_impute].notna()):
|
||||
return mask
|
||||
# pylint: disable-next=broad-exception-raised
|
||||
raise Exception("No mask found")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue