Skip to content

Commit

Permalink
chore: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroferreira1 committed Feb 19, 2025
1 parent 36ff4a5 commit 6904afd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions handlers/node_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,11 @@ def nc_builtin_blueprints(
)

if response is None or "error" in response:
message = response.get("error") if (response and "error" in response) else "Unknown error"
message = (
response.get("error")
if (response and "error" in response)
else "Unknown error"
)
raise ApiError(message)

return {
Expand Down Expand Up @@ -478,7 +482,11 @@ def nc_on_chain_blueprints(
)

if response is None or "error" in response:
message = response.get("error") if (response and "error" in response) else "Unknown error"
message = (
response.get("error")
if (response and "error" in response)
else "Unknown error"
)
raise ApiError(message)

return {
Expand Down

0 comments on commit 6904afd

Please sign in to comment.