def complete(self):
self._is_live('<STR_LIT>')<EOL>try:<EOL><INDENT>self.message.accept()<EOL><DEDENT>except Exception as e:<EOL><INDENT>raise MessageSettleFailed("<STR_LIT>", e)<EOL><DEDENT>
Complete the message.

        This removes the message from the queue.

        :raises: ~azure.servicebus.common.errors.MessageAlreadySettled if the message has been settled.
        :raises: ~azure.servicebus.common.errors.MessageLockExpired if message lock has already expired.
        :raises: ~azure.servicebus.common.errors.SessionLockExpired if session lock has already expired.
        :raises: ~azure.servicebus.common.errors.MessageSettleFailed if message settle operation fails.