parent
59dba6a7c7
commit
cc90747da1
|
@ -273,9 +273,9 @@ def ensureNamecoinOptions ():
|
||||||
# Try to read user/password from .namecoin configuration file.
|
# Try to read user/password from .namecoin configuration file.
|
||||||
defaultUser = ""
|
defaultUser = ""
|
||||||
defaultPass = ""
|
defaultPass = ""
|
||||||
try:
|
|
||||||
nmcFolder = lookupNamecoinFolder ()
|
nmcFolder = lookupNamecoinFolder ()
|
||||||
nmcConfig = nmcFolder + "namecoin.conf"
|
nmcConfig = nmcFolder + "namecoin.conf"
|
||||||
|
try:
|
||||||
nmc = open (nmcConfig, "r")
|
nmc = open (nmcConfig, "r")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
@ -295,7 +295,8 @@ def ensureNamecoinOptions ():
|
||||||
shared.namecoinDefaultRpcPort = val
|
shared.namecoinDefaultRpcPort = val
|
||||||
|
|
||||||
nmc.close ()
|
nmc.close ()
|
||||||
|
except IOError:
|
||||||
|
logger.error("%s unreadable or missing, Namecoin support deactivated", nmcConfig)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logger.warning("Error processing namecoin.conf", exc_info=True)
|
logger.warning("Error processing namecoin.conf", exc_info=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user