def _check_recording_stopped(self):
    '\n        Raise an exception if the camera is currently recording.\n        '
    if self.recording:
        raise PiCameraRuntimeError('Recording is currently running')
Raise an exception if the camera is currently recording.
def _check_recording_stopped(self):
    '\n        \n        '
    if self.recording:
        raise PiCameraRuntimeError('Recording is currently running')