commit e12699ae75cb23ac6c2c6f5db21c29ab0dfa9274
parent cdc16acabb45554cd82def8c312aa1444bf84149
Author: Jimbo77 <onlineregular@gmail.com>
Date: Thu, 23 Aug 2012 18:16:27 -0700
getting rid of more BaseExceptions
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -920,10 +920,10 @@ class Wallet:
def mktx(self, to_address, amount, label, password, fee=None, change_addr=None, from_addr= None):
if not self.is_valid(to_address):
- raise BaseException("Invalid address")
+ raise ValueError("Invalid address")
inputs, total, fee = self.choose_tx_inputs( amount, fee, from_addr )
if not inputs:
- raise BaseException("Not enough funds")
+ raise ValueError("Not enough funds")
if not self.use_change and not change_addr:
change_addr = inputs[0][0]