def run(self, config, args):
        server = config.get('server')

        password = args['-p']
        try:
            if password is None:
                while True:
                    password = getpass("password: ")
                    if password and password is not None:
                        break
                    print("password is empty. Please enter a password.")

                # confirm password

                while True:
                    confirm_password = getpass("confirm password: ")
                    if confirm_password == password:
                        break
        except KeyboardInterrupt:
            return


        if not confirm("Confirm the change %s's password" % args['<username>']):
            return

        users = Users(server)
        try:
            user = users.set_password(args['<username>'], password)
        except GafferNotFound:
            raise RuntimeError("User %r not found" % args['<username>'])

        print(args['<username>'] % "%s's password changed")
dataset/ETHPy150Open benoitc/gaffer/gaffer/cli/commands/user_setpwd.py/UserSetPassword.run/swapped operands of `%`