def response_handler(resp): if resp.is_success: return format_wal_properties(resp.body) raise WALConfigureError(resp, request)
def response_handler(resp: Response) -> Json: if resp.is_success: return format_wal_properties(resp.body) raise WALPropertiesError(resp, request)