mirror of
https://github.com/bitcoin/bips.git
synced 2026-03-09 15:53:54 +00:00
fix: Fix incorrect use of return for raising exceptions Update wallet_policies.py
This commit is contained in:
@@ -68,7 +68,7 @@ class WalletPolicy(object):
|
||||
|
||||
# there should not be any remaining "@" expressions
|
||||
if desc.find("@") != -1:
|
||||
return Exception("Invalid descriptor template: contains invalid key index")
|
||||
raise Exception("Invalid descriptor template: contains invalid key index")
|
||||
|
||||
return desc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user