distinguish between ImportError and SyntaxError
authorThomasV <thomasv@gitorious>
Thu, 7 Jun 2012 17:47:00 +0000 (19:47 +0200)
committerThomasV <thomasv@gitorious>
Thu, 7 Jun 2012 17:47:00 +0000 (19:47 +0200)
electrum

index 7251ffe..6c66376 100755 (executable)
--- 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