human
Complete this python program:
def log_other_exceptions(func):
assistant
#Here is the Python code you requested.

    """A decorator that prints out any errors that are not
    ChunkDoesntExist errors. This should decorate any functions or
    methods called by the C code, such as get_chunk(), because the C
    code is likely to swallow exceptions. This will at least make them
    visible.
    """
    functools.wraps(func)
    def newfunc(*args):
        try:
            return func(*args)
        except ChunkDoesntExist:
            raise
        except Exception as e:
            logging.exception('%s    raised    this    exception', func.func_name)
            raise
    return newfunc