The top-level response code in batch.finish is not checked and the error is not properly returned.
Surfaced in #404 , if a batch request fails, a ValueError: Bad response: not multi-part is returned instead of bubbling up the actual error. The ValueError in this case is misleading and not informative.