diff --git a/openbb_platform/providers/ecb/openbb_ecb/models/yield_curve.py b/openbb_platform/providers/ecb/openbb_ecb/models/yield_curve.py index 24abab2bea83..e8c707fe05ca 100644 --- a/openbb_platform/providers/ecb/openbb_ecb/models/yield_curve.py +++ b/openbb_platform/providers/ecb/openbb_ecb/models/yield_curve.py @@ -100,10 +100,10 @@ async def get_one(maturity, use_cache): await session.close() else: response = await amake_request(url=url) - if not response: + if not response: # pylint: disable=E0606 raise RuntimeError("Error: No data was returned.") - if isinstance(response, List): - for item in response: # pylint: disable=E0606 + if isinstance(response, List): # pylint: disable=E0606 + for item in response: d = { "date": item.get("PERIOD"), "maturity": maturity, diff --git a/openbb_platform/providers/econdb/openbb_econdb/models/yield_curve.py b/openbb_platform/providers/econdb/openbb_econdb/models/yield_curve.py index 8b9bfcf15307..0bd95e05e754 100644 --- a/openbb_platform/providers/econdb/openbb_econdb/models/yield_curve.py +++ b/openbb_platform/providers/econdb/openbb_econdb/models/yield_curve.py @@ -102,7 +102,7 @@ async def aextract_data( # pylint: disable=R0914.R0912,R0915 response = await helpers.amake_request( # type: ignore url, timeout=20, **kwargs ) - if not response: + if not response: # pylint: disable=E0606 raise RuntimeError("Error: No data was returned.") data = response.get("results") # pylint: disable=E0606 if not data: