Skip to content

An error occurred when running gacha update #24

@GirlKiller512

Description

@GirlKiller512

发送 更新卡池强制更新卡池 命令,Bot 报错
日志:

[2021-11-03 13:07:45,263 nonebot] ERROR: An exception occurred while running command ('更新卡池',):
[2021-11-03 13:07:45,263 nonebot] ERROR: list index out of range
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/nonebot/command/__init__.py", line 869, in _real_run_command
    await asyncio.wait_for(future, timeout)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
    return await fut
  File "/usr/local/lib/python3.10/site-packages/nonebot/command/__init__.py", line 174, in run
    await self.func(session)
  File "/root/HoshinoBot/hoshino/modules/priconne/gacha/update.py", line 231, in update_pool_chat
    status = await update_pool()
  File "/root/HoshinoBot/hoshino/modules/priconne/gacha/update.py", line 218, in update_pool
    update_local_pool(online_pool)
  File "/root/HoshinoBot/hoshino/modules/priconne/gacha/update.py", line 176, in update_local_pool
    local_pool[server][star] = ids2names(local_pool[server][star])
  File "/root/HoshinoBot/hoshino/modules/priconne/gacha/update.py", line 82, in ids2names
    res.append(_pcr_data.CHARA_NAME[id][0])
IndexError: list index out of range

目前自己找到的临时解决方法为把 update.py 中的 update_local_pool() 中的 pool_name 中的 MIX 行注释掉
不过这个肯定不是根本的解决方法

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions