提交 d3c9b7d5 编写于 作者: B Brian Johnson

Cleanup error handling. GH #4973

上级 9b153f77
......@@ -919,11 +919,11 @@ class Cluster(object):
producerKeys=Cluster.parseClusterKeys(totalNodes)
# should have totalNodes node plus bios node
if producerKeys is None or len(producerKeys) < (totalProducers+1):
if producerKeys is None:
Utils.Print("ERROR: Failed to parse any producer keys from config files.")
else:
Utils.Print("ERROR: Failed to parse %d producer keys from cluster config files, only found %d." % (totalNodes+1,len(producerKeys)))
if producerKeys is None:
Utils.Print("ERROR: Failed to parse any producer keys from config files.")
return None
elif len(producerKeys) < (totalProducers+1):
Utils.Print("ERROR: Failed to parse %d producer keys from cluster config files, only found %d." % (totalProducers+1,len(producerKeys)))
return None
walletMgr=WalletMgr(True)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册