human
Complete the below
def convertkeyerror(func):

    ''''Converts KeyError into InvalidConfigSection.'
    '''

Give me a the Python program you requested?
assistant
#Here is the Python program you requested.
    def conv(*args, **kwargs):
        try:
            return func(*args, **kwargs)
        except KeyError:
            raise InvalidConfigSection(args[1])
    return conv