def _get_frame(self):
    self._check_camera_open()
    for e in self._encoders.values():
        try:
            return e.frame
        except AttributeError:
            pass
    raise PiCameraRuntimeError('Cannot query frame information when camera is not recording')
def _get_frame(self):
    self._check_camera_open()
    for e in self._encoders.values():
        try:
            return e.frame
        except AttributeError:
            pass
    raise PiCameraRuntimeError('Cannot query frame information when camera is not recording')