(resp: HTTPValidationError)
| 95 | |
| 96 | |
| 97 | def _format_validation_error(resp: HTTPValidationError) -> str: |
| 98 | error = resp.additional_properties.get("error") |
| 99 | if error is not None: |
| 100 | return str(error) |
| 101 | if resp.detail: |
| 102 | return str(resp.detail) |
| 103 | return "Unknown validation error" |
| 104 | |
| 105 | |
| 106 | def _classify_syncs(resp: GetSyncBatchResponse) -> tuple[list, list]: |