def mmal_check(status, prefix=""):
    if status != mmal.MMAL_SUCCESS:
        raise PiCameraMMALError(status, prefix)
Checks the return status of an mmal call and raises an exception on
dataset/ETHPy150Open waveform80/picamera/picamera/exc.py/mmal_check