|
@ -73,10 +73,10 @@ def send_turn(turn: dict, round: int, args) -> bool: |
|
|
elif response["status"] == "error": |
|
|
elif response["status"] == "error": |
|
|
logger.error(f"Turn error: {response['description']}") |
|
|
logger.error(f"Turn error: {response['description']}") |
|
|
elif response["status"] == "warning": |
|
|
elif response["status"] == "warning": |
|
|
member_errors = [ |
|
|
member_warns = [ |
|
|
f" {member}: {error}" |
|
|
f" {member['id']}: {member['description']}" |
|
|
for member, error in response["errors"].items() |
|
|
for member in response["members"] |
|
|
] |
|
|
] |
|
|
logger.error("Member errors:\n" + "\n".join(member_errors)) |
|
|
logger.warn("Member warnings:\n" + "\n".join(member_warns)) |
|
|
|
|
|
|
|
|
return True |
|
|
return True |
|
|