Skip to content

Commit aa18a92

Browse files
authored
Fix incorrect use of NotImplementedError
1 parent ebc85bf commit aa18a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/wallet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def to_scriptPubKey(self):
308308
return script.CScript([0, self])
309309

310310
def to_redeemScript(self):
311-
return NotImplementedError("not enough data in p2wsh address to reconstruct redeem script")
311+
raise NotImplementedError("Not enough data in p2wsh address to reconstruct redeem script")
312312

313313

314314
class P2WPKHBitcoinAddress(CBech32BitcoinAddress):

0 commit comments

Comments
 (0)