bugbug
This commit is contained in:
@@ -20,12 +20,12 @@ class Networking:
|
|||||||
def get(self, path):
|
def get(self, path):
|
||||||
if self.retries < config.MAX_NETWORK_RETRIES:
|
if self.retries < config.MAX_NETWORK_RETRIES:
|
||||||
logging.error("Network exception. Could not get " + path)
|
logging.error("Network exception. Could not get " + path)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = self.output_session.get(self.server_address + path)
|
response = self.output_session.get(self.server_address + path)
|
||||||
except Exception:
|
except Exception:
|
||||||
self.retries += 1
|
self.retries += 1
|
||||||
sleep(config.NETWORK_SLEEP_TIME)
|
sleep(config.NETWORK_SLEEP_TIME_SECONDS)
|
||||||
return self.get(path)
|
return self.get(path)
|
||||||
|
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
|||||||
Reference in New Issue
Block a user