Fix linter and dependency issues

This commit is contained in:
Carlos Felix 2024-11-19 15:01:27 -05:00 committed by Carlos Felix
commit 3e087a37a4
7 changed files with 619 additions and 730 deletions

View file

@ -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}"
)

View file

@ -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")