'Load the buffer using the load function hook.'

def load_buffer(self):

    try:
        self._buffer = self._loadfunc(self._caller)
        if (not isinstance(self._buffer, basestring)):
            self._buffer = to_str(self._buffer, force_string=True)
            self._caller.msg('|rNote:    input    buffer    was    converted    to    a    string.|n')
    except Exception as e:
        from evennia.utils import logger
        logger.log_trace()
        self._caller.msg(_ERROR_LOADFUNC.format(error=e))
