|
@ -57,7 +57,7 @@ def send_turn(turn: dict, round: int, args) -> bool: |
|
|
json=json.dumps(turn) |
|
|
json=json.dumps(turn) |
|
|
) |
|
|
) |
|
|
except requests.exceptions.RequestException as e: |
|
|
except requests.exceptions.RequestException as e: |
|
|
logger.warning("Request error: {e}") |
|
|
logger.warning(f"Request error: {e}") |
|
|
return False |
|
|
return False |
|
|
if not r.ok: |
|
|
if not r.ok: |
|
|
logger.warning(f"Server error: {r.status_code} {r.reason}") |
|
|
logger.warning(f"Server error: {r.status_code} {r.reason}") |
|
|