def _check_camera_open(self):
    '\n        Raise an exception if the camera is already closed, or if the camera\n        has encountered a fatal error.\n        '
    (exc, self._camera_exception) = (self._camera_exception, None)
    if exc:
        raise exc
    if self.closed:
        raise PiCameraClosed('Camera is closed')
Raise an exception if the camera is already closed, or if the camera
has encountered a fatal error.
def _check_camera_open(self):
    '\n        Raise an exception if the camera is already closed, or if the camera\n        has encountered a fatal error.\n        '
    (exc, self._camera_exception) = (self._camera_exception, None)
    if exc:
        raise exc
    if self.closed:
        raise PiCameraClosed('Camera is closed')