Skip to content

Commit

Permalink
feat: set unknown error string correctly instead of an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroferreira1 committed Feb 19, 2025
1 parent 16ff24b commit 36ff4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/node_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def nc_builtin_blueprints(
)

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

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

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

return {
Expand Down

0 comments on commit 36ff4a5

Please sign in to comment.