mirror of
https://github.com/bitcoin/bips.git
synced 2025-06-30 12:42:43 +00:00
Merge pull request #1752 from brawncode/patch-1
BIP388: Fix incorrect use of return for raising exception
This commit is contained in:
commit
5333e5e951
@ -68,7 +68,7 @@ class WalletPolicy(object):
|
|||||||
|
|
||||||
# there should not be any remaining "@" expressions
|
# there should not be any remaining "@" expressions
|
||||||
if desc.find("@") != -1:
|
if desc.find("@") != -1:
|
||||||
return Exception("Invalid descriptor template: contains invalid key index")
|
raise Exception("Invalid descriptor template: contains invalid key index")
|
||||||
|
|
||||||
return desc
|
return desc
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user