From 1a0a67972f5565f535850e6066b5072dffcd2466 Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Fri, 29 Nov 2024 15:40:41 -0800 Subject: [PATCH] linting --- openbb_platform/core/openbb_core/provider/utils/helpers.py | 2 +- .../yfinance/openbb_yfinance/models/price_target_consensus.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openbb_platform/core/openbb_core/provider/utils/helpers.py b/openbb_platform/core/openbb_core/provider/utils/helpers.py index 913ed8f25a6..471d64a34b5 100644 --- a/openbb_platform/core/openbb_core/provider/utils/helpers.py +++ b/openbb_platform/core/openbb_core/provider/utils/helpers.py @@ -460,7 +460,7 @@ def make_request( kwargs["verify"] = combine_certificates(python_settings["cafile"]) if os.environ.get("REQUESTS_CA_BUNDLE") and python_settings.get("cafile") is None: - certs = os.environ.get("REQUESTS_CA_BUNDLE") + certs = os.environ.get("REQUESTS_CA_BUNDLE", "") kwargs["verify"] = combine_certificates(certs) if ( diff --git a/openbb_platform/providers/yfinance/openbb_yfinance/models/price_target_consensus.py b/openbb_platform/providers/yfinance/openbb_yfinance/models/price_target_consensus.py index 6d237d715e2..dfbe266d3cb 100644 --- a/openbb_platform/providers/yfinance/openbb_yfinance/models/price_target_consensus.py +++ b/openbb_platform/providers/yfinance/openbb_yfinance/models/price_target_consensus.py @@ -4,6 +4,7 @@ from typing import Any, Dict, List, Optional +from openbb_core.app.model.abstract.error import OpenBBError from openbb_core.provider.abstract.fetcher import Fetcher from openbb_core.provider.standard_models.price_target_consensus import ( PriceTargetConsensusData, @@ -84,7 +85,6 @@ async def aextract_data( """Extract the raw data from YFinance.""" # pylint: disable=import-outside-toplevel import asyncio # noqa - from openbb_core.app.model.abstract.error import OpenBBError from openbb_core.provider.utils.errors import EmptyDataError from openbb_core.provider.utils.helpers import get_certificates, restore_certs from warnings import warn