electrum

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

commit 3c2971dd7b3084dbf078463ff9f85855dc13f438
parent 6f0dcd091fed72265c74693dc938a612ee973aad
Author: ThomasV <thomasv@gitorious>
Date:   Thu,  7 Jun 2012 19:47:00 +0200

distinguish between ImportError and SyntaxError

Diffstat:
Melectrum | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/electrum b/electrum @@ -32,7 +32,7 @@ except: try: from lib import Wallet, WalletSynchronizer, format_satoshis, mnemonic -except: +except ImportError: from electrum import Wallet, WalletSynchronizer, format_satoshis, mnemonic from optparse import OptionParser @@ -130,12 +130,12 @@ if __name__ == '__main__': if options.gui=='gtk': try: import lib.gui as gui - except: + except ImportError: import electrum.gui as gui elif options.gui=='qt': try: import lib.gui_qt as gui - except: + except ImportError: import electrum.gui_qt as gui else: print "unknown gui", options.gui