bugbug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user