tgetting rid of more unnecessary print_errors() - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1429ef71e139f72f256330baaf7327d6466b165e DIR parent 89109541bd452bd6f60979c81b883ab4068fa258 HTML Author: Jimbo77 <onlineregular@gmail.com> Date: Sun, 19 Aug 2012 18:19:59 -0700 getting rid of more unnecessary print_errors() Diffstat: M electrum | 10 ++++------ M lib/wallet.py | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -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 DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -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: