electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 1429ef71e139f72f256330baaf7327d6466b165e
parent 89109541bd452bd6f60979c81b883ab4068fa258
Author: Jimbo77 <onlineregular@gmail.com>
Date:   Sun, 19 Aug 2012 18:19:59 -0700

getting rid of more unnecessary print_errors()

Diffstat:
Melectrum | 10++++------
Mlib/wallet.py | 2+-
2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/electrum b/electrum @@ -347,17 +347,15 @@ if __name__ == '__main__': f = open(ns,'r') data = f.read() f.close() - except: - print_error("Error: Seed file not found") - sys.exit() + except IOError: + sys.exit("Error: Seed file not found") try: import ast d = ast.literal_eval( data ) seed = d['seed'] imported_keys = d.get('imported_keys',{}) - except: - print_error("Error: Error with seed file") - sys.exit(1) + except IOError: + sys.exit("Error: Error with seed file") mpk = wallet.master_public_key wallet.seed = seed diff --git a/lib/wallet.py b/lib/wallet.py @@ -351,7 +351,7 @@ class Wallet: self.interface.poke() def set_path(self, wallet_path): - '''Set the path of the wallet.''' + """Set the path of the wallet.""" if wallet_path is not None: self.path = wallet_path else: