Improved check on if storage is up and running.
@@ -243,7 +243,14 @@ def setup_local(ip_addr, request_handler, nbr, proxy_storage):
try:
retries += 1
peers = request_handler.get_index(rt, index_string, timeout=60)
+ except Exception as e:
+ try:
+ notfound = e.message.startswith("404")
except:
+ notfound = False
+ if notfound:
+ peers={'result':[]}
+ else:
_log.info("Timed out when finding peers retrying")
retries += 39 # A timeout counts more we don't want to wait 60*100 seconds
continue
