def __init__(self, thread_index): # pylint: disable=broad-except self.__timeout_terminate = 1000 # TIMEOUT_TERMINATE_MIN try: self.__api = libcloudi_py.cloudi_c(thread_index) except Exception as exception: self.__rethrow_exception(exception) self.__timeout_terminate = self.__api.timeout_terminate()
def __init__(self, thread_index): self.__timeout_terminate = 1000 # TIMEOUT_TERMINATE_MIN exception = None try: self.__api = libcloudi_py.cloudi_c(thread_index) except Exception as e: exception = e if exception is not None: self.__rethrow_exception(exception) self.__timeout_terminate = self.__api.timeout_terminate()
def __init__(self, thread_index): try: self.__api = libcloudi_py.cloudi_c(thread_index) except libcloudi_py.invalid_input_exception as e: raise invalid_input_exception(e)
def __init__(self, thread_index): # pylint: disable=broad-except try: self.__api = libcloudi_py.cloudi_c(thread_index) except Exception as exception: API.__rethrow_exception(exception)