Skip to content

Commit 6d62e4f

Browse files
committed
Do not assign unused variable, do not use bare except
1 parent 0534fbc commit 6d62e4f

File tree

1 file changed

+2
-2
lines changed
  • src/cryptoadvance/specter

1 file changed

+2
-2
lines changed

src/cryptoadvance/specter/key.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def parse_xpub(cls, xpub, purpose=""):
9393
if path[-1] == "h":
9494
path = path[:-1]
9595
try:
96-
i = int(path)
97-
except:
96+
int(path)
97+
except ValueError:
9898
raise Exception("Incorrect index")
9999
derivation_path[0] = "m"
100100
derivation = "/".join(derivation_path)

0 commit comments

Comments
 (0)