词典中的“ IndexError:无法将'int'装入索引大小的整数”

时间:2018-08-02 18:05:05

标签: python-3.x discord.py index-error

我正在尝试用python创建一个discord机器人,并做一个像MEE6之类的XP仿真器。但是,当我尝试使用当前拥有的资源时,会出现错误。我当前的代码是:

git config --global http.postBuffer 157286400

为总结这一点,它基本上会打开一个包含字典Enumerating objects: 46108, done. Counting objects: 100% (46108/46108), done. Delta compression using up to 8 threads. Compressing objects: 100% (40948/40948), done. error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10053 fatal: The remote end hung up unexpectedly Writing objects: 100% (46107/46107), 3.07 GiB | 19.76 MiB/s, done. Total 46107 (delta 3570), reused 46107 (delta 3570) fatal: The remote end hung up unexpectedly Everything up-to-date 的文件,并且每次有人讲话时加1 xp。我具有用于多服务器支持的多个服务器ID。由于某种原因,我得到了这个确切的错误:

def permit_params
  params.require(:recommendation).permit(:text)
end

def create
  @user = current_user
  @post = Post.find(params[:post_id])
  @recommendation=current_user.recommendations.new(permit_params)
  @recommendation.user_id = @user.id
  @recommendation.post_id = @post.id

  if @recommendation.save
    respond_to do |format|
      format.html { redirect_back(fallback_location: 'back') }
      format.js
    end
  else
    redirect_to 'layouts/404'
  end
end

0 个答案:

没有答案