electrum

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

commit 7d8f5e1aec1d5f868b69398f263cbcef30203269
parent 33dbc917b0c8f9f61099580d47a9aebdf19a6821
Author: ThomasV <thomasv@gitorious>
Date:   Fri, 23 Mar 2012 19:17:44 +0100

better error messages

Diffstat:
Mclient/gui_qt.py | 10+++++-----
Mclient/interface.py | 1-
Mclient/wallet.py | 1-
3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/client/gui_qt.py b/client/gui_qt.py @@ -773,8 +773,8 @@ class ElectrumWindow(QMainWindow): try: gap = int(unicode(gap_e.text())) except: - show_message("error") - sys.exit(1) + QMessageBox.warning(None, 'Error', 'error', 'OK') + sys.exit(0) try: seed = unicode(seed_e.text()) @@ -784,8 +784,8 @@ class ElectrumWindow(QMainWindow): print "not hex, trying decode" seed = mnemonic.mn_decode( seed.split(' ') ) if not seed: - show_message("no seed") - sys.exit(1) + QMessageBox.warning(None, 'Error', 'no seed', 'OK') + sys.exit(0) wallet.seed = str(seed) #print repr(wallet.seed) @@ -895,7 +895,7 @@ class ElectrumWindow(QMainWindow): host = hh port = wallet.port except: - show_message("error") + QMessageBox.information(None, 'Error', 'error', 'OK') if parent == None: sys.exit(1) else: diff --git a/client/interface.py b/client/interface.py @@ -345,7 +345,6 @@ def loop_interfaces_thread(wallet): try: wallet.start_interface() wallet.run() - print "Disconnected" except socket.error: print "socket error" time.sleep(5) diff --git a/client/wallet.py b/client/wallet.py @@ -933,7 +933,6 @@ class Wallet: def handle_response(self, r): if r is None: - print "empty item" return method = r['method']