Skip to content

Commit

Permalink
Fix bug in new chain address validation (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
falvaradorodriguez authored Jun 28, 2024
1 parent f3920fe commit 79d5c65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_chain_explorers_urls(chain_id: int) -> List[str]:
response = requests.get(url)

if response.status_code == 200:
explorers = response.json().get("explorers")
explorers = response.json().get("explorers", [])
return [explorer.get("url") for explorer in explorers]
except (IOError, ConnectionError) as e:
print(f"Error getting chain explorers urls: {e}")
Expand Down

0 comments on commit 79d5c65

Please sign in to comment.