Merge pull request #1752 from brawncode/patch-1

BIP388: Fix incorrect use of return for raising exception
This commit is contained in:
Jon Atack 2025-01-29 13:49:52 -06:00 committed by GitHub
commit 5333e5e951
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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