fix mixed tab indentation
This commit is contained in:
parent
941c194fbd
commit
a6938e1b36
@ -65,20 +65,20 @@ def setup(on_startup):
|
|||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
if isinstance(e[2], str):
|
if isinstance(e[2], str):
|
||||||
try:
|
try:
|
||||||
if isinstance(json.loads(e[2])['error']['message'], str):
|
if isinstance(json.loads(e[2])['error']['message'], str):
|
||||||
error = json.loads(e[2])['error']['message']
|
error = json.loads(e[2])['error']['message']
|
||||||
if error == "Method not found":
|
if error == "Method not found":
|
||||||
log.error("CoinD does not support getblocktemplate!!! (time to upgrade.)")
|
log.error("CoinD does not support getblocktemplate!!! (time to upgrade.)")
|
||||||
reactor.stop()
|
reactor.stop()
|
||||||
elif "downloading blocks" in error:
|
elif "downloading blocks" in error:
|
||||||
log.error("CoinD downloading blockchain... will check back in 30 sec")
|
log.error("CoinD downloading blockchain... will check back in 30 sec")
|
||||||
time.sleep(29)
|
time.sleep(29)
|
||||||
else:
|
else:
|
||||||
log.error("Coind Error: %s", error)
|
log.error("Coind Error: %s", error)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
log.error("Failed Connect(HTTP 500 or Invalid JSON), Check Username and Password!")
|
log.error("Failed Connect(HTTP 500 or Invalid JSON), Check Username and Password!")
|
||||||
reactor.stop()
|
reactor.stop()
|
||||||
time.sleep(1) # If we didn't get a result or the connect failed
|
time.sleep(1) # If we didn't get a result or the connect failed
|
||||||
|
|
||||||
log.info('Connected to the coind - Begining to load Address and Module Checks!')
|
log.info('Connected to the coind - Begining to load Address and Module Checks!')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user