Skip to content

Commit

Permalink
Do not assign unused variable, do not use bare except
Browse files Browse the repository at this point in the history
  • Loading branch information
roshii committed Jun 2, 2024
1 parent 32809f9 commit a42cb46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cryptoadvance/specter/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def parse_xpub(cls, xpub, purpose=""):
if path[-1] == "h":
path = path[:-1]
try:
i = int(path)
except:
int(path)
except ValueError:
raise Exception("Incorrect index")
derivation_path[0] = "m"
derivation = "/".join(derivation_path)
Expand Down

0 comments on commit a42cb46

Please sign in to comment.