changed a couple exceptions to describe import errors
authorJimbo77 <onlineregular@gmail.com>
Mon, 19 Nov 2012 00:56:17 +0000 (16:56 -0800)
committerJimbo77 <onlineregular@gmail.com>
Mon, 19 Nov 2012 00:56:17 +0000 (16:56 -0800)
lib/simple_config.py

index b28f33a..025c7bc 100644 (file)
@@ -105,7 +105,7 @@ class SimpleConfig:
         if os.path.exists(name):
             try:
                 import ConfigParser
-            except:
+            except ImportError:
                 print "cannot parse electrum.conf. please install ConfigParser"
                 return
                 
@@ -125,7 +125,7 @@ class SimpleConfig:
         if os.path.exists(name):
             try:
                 import ConfigParser
-            except:
+            except ImportError:
                 print "cannot parse electrum.conf. please install ConfigParser"
                 return