Skip to content

Commit f67b2cb

Browse files
committed
Merge petertodd#229: Fix incorrect use of NotImplementedError
aa18a92 Fix incorrect use of NotImplementedError (Wesley Kerfoot) Pull request description: This was incorrect. I guess the author copy-pasted the code from somewhere or was thinking of `return NotImplemented` (which wouldn't even make sense here). Merge remote-tracking branch 'weskerfoot/master' into 'master' Tree-SHA512: 149e6c028ec663042bab925599a3662e209fed29b94cb2e4b376ce0186f2ff0843e5b9488b25732c0fcc208b4c5ea631d41d9f113011bdbcaa88d4ab5914beff
2 parents 3dfb99d + aa18a92 commit f67b2cb

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)