changed a couple exceptions to describe import errors
This commit is contained in:
@@ -105,7 +105,7 @@ class SimpleConfig:
|
|||||||
if os.path.exists(name):
|
if os.path.exists(name):
|
||||||
try:
|
try:
|
||||||
import ConfigParser
|
import ConfigParser
|
||||||
except:
|
except ImportError:
|
||||||
print "cannot parse electrum.conf. please install ConfigParser"
|
print "cannot parse electrum.conf. please install ConfigParser"
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -125,7 +125,7 @@ class SimpleConfig:
|
|||||||
if os.path.exists(name):
|
if os.path.exists(name):
|
||||||
try:
|
try:
|
||||||
import ConfigParser
|
import ConfigParser
|
||||||
except:
|
except ImportError:
|
||||||
print "cannot parse electrum.conf. please install ConfigParser"
|
print "cannot parse electrum.conf. please install ConfigParser"
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user