<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _wait_and_except_if_failed(self, event, timeout=None):
 """Combines waiting for event and call to `_except_if_failed`. If timeout is not specified the configured sync_timeout is used. """

        event.wait(timeout or self.__sync_timeout)
        self._except_if_failed(event)