This commit is contained in:
Jonas Zeunert
2022-06-06 23:55:14 +02:00
parent 99e2307f09
commit b696f30463

View File

@@ -20,12 +20,12 @@ class Networking:
def get(self, path):
if self.retries < config.MAX_NETWORK_RETRIES:
logging.error("Network exception. Could not get " + path)
try:
response = self.output_session.get(self.server_address + path)
except Exception:
self.retries += 1
sleep(config.NETWORK_SLEEP_TIME)
sleep(config.NETWORK_SLEEP_TIME_SECONDS)
return self.get(path)
assert response.status_code == 200