fix: Fix incorrect use of return for raising exceptions Update wallet_policies.py

This commit is contained in:
Brawn authored and GitHub committed 2025-01-25 22:49:57 +03:00
1 parent 58ffd93812
commit 607cac148e
1 file changed
+1 -1
+1 -1
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