URI: 
       tgetting rid of more BaseExceptions - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit e12699ae75cb23ac6c2c6f5db21c29ab0dfa9274
   DIR parent cdc16acabb45554cd82def8c312aa1444bf84149
  HTML Author: Jimbo77 <onlineregular@gmail.com>
       Date:   Thu, 23 Aug 2012 18:16:27 -0700
       
       getting rid of more BaseExceptions
       
       Diffstat:
         M lib/wallet.py                       |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -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]