Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred when running gacha update #24

Open
GirlKiller512 opened this issue Jan 10, 2022 · 0 comments
Open

An error occurred when running gacha update #24

GirlKiller512 opened this issue Jan 10, 2022 · 0 comments

Comments

@GirlKiller512
Copy link

发送 更新卡池强制更新卡池 命令,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 行注释掉
不过这个肯定不是根本的解决方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant