Skip to content

Commit

Permalink
Merge pull request #174 from stepansnigirev/fix-explorer
Browse files Browse the repository at this point in the history
fix: don't update explorer if chain is unknown
  • Loading branch information
stepansnigirev authored Jun 26, 2020
2 parents 56a4c47 + 6658497 commit a0f8a6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cryptoadvance/specter/specter.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ def update_auth(self, auth):

def update_explorer(self, explorer):
''' update the block explorers urls '''
# we don't know what chain to change
if not self.chain:
return
if explorer and not explorer.endswith("/"):
# make sure the urls end with a "/"
explorer += "/"
Expand Down

0 comments on commit a0f8a6b

Please sign in to comment.