Skip to content

Commit

Permalink
more pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone committed May 15, 2024
1 parent bfa4cce commit 86284da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 86284da

Please sign in to comment.