From 607cac148e7ca9a22a7784b481d464d894b94623 Mon Sep 17 00:00:00 2001 From: Brawn Date: Sat, 25 Jan 2025 22:49:57 +0300 Subject: [PATCH] fix: Fix incorrect use of return for raising exceptions Update wallet_policies.py --- bip-0388/wallet_policies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-0388/wallet_policies.py b/bip-0388/wallet_policies.py index 754d2010..43aa54fa 100755 --- a/bip-0388/wallet_policies.py +++ b/bip-0388/wallet_policies.py @@ -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