def _reraise_translated_image_exception(image_id):
 (_exc_type, exc_value, exc_trace) = sys.exc_info()
 new_exc = _translate_image_exception(image_id, exc_value)
 six.reraise(type(new_exc), new_exc, exc_trace)

def _reraise_translated_image_exception ( image_id ) : ( _exc_type , exc_value , exc_trace ) = sys . exc_info ( ) new_exc = _translate_image_exception ( image_id , exc_value ) six . reraise ( type ( new_exc ) , new_exc , exc_trace )
transform the exception for the image but keep its traceback intact .