

def run(self, config, args):
    server = config.get('server')
    key = args['-k']
    try:
        if (key is None):
            key = input('api key: ')
    except KeyboardInterrupt:
        return
    if (not confirm(("Confirm the change %s's key" % args['<username>']))):
        return
    users = Users(server)
    try:
        user = server.set_key(args['<username>'], key)
    except GafferNotFound:
        raise RuntimeError(('User %r not found' % args['<username>']))
    print(("%s's key changed" % args['<username>']))

dataset/ETHPy150Open benoitc/gaffer/gaffer/cli/commands/user_setkey.py UserSetPassword.run/VarMisuse@94/126 `users`->`server`