tdistinguish between ImportError and SyntaxError - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3c2971dd7b3084dbf078463ff9f85855dc13f438 DIR parent 6f0dcd091fed72265c74693dc938a612ee973aad HTML Author: ThomasV <thomasv@gitorious> Date: Thu, 7 Jun 2012 19:47:00 +0200 distinguish between ImportError and SyntaxError Diffstat: M electrum | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -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 t@@ -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