主要报错:ERROR: 'Arcade' object has no attribute 'modeldump'
解决尝试:检查了所需的依赖且确定无误依旧报错
详细报错:
[2023-09-27 08:21:00,479 maimaiDX排卡] ERROR: <class 'AttributeError'> occured when handling message 275063169.
[2023-09-27 08:21:00,479 maimaiDX排卡] ERROR: 'Arcade' object has no attribute 'model_dump'
Traceback (most recent call last):
File "C:\Users\Administrator\HoshinoBot\hoshino\msghandler.py", line 28, in handle_message
await sf.func(bot, event)
File "C:\Users\Administrator\HoshinoBot\hoshino\modules\maimai\maimaiarcade.py", line 89, in
msg = await modify(arcadeName=args[0], aliasName=args[1])
File "C:\Users\Administrator\HoshinoBot\hoshino\modules\maimai\libraries\maimaidx_arcade.py", line 231, in modify
await arcade.total.save_arcade()
File "C:\Users\Administrator\HoshinoBot\hoshino\modules\maimai\libraries\maimaidx_arcade.py", line 31, in save_arcade
return await writefile(arcadesjson, [.modeldump() for in self])
File "C:\Users\Administrator\HoshinoBot\hoshino\modules\maimai\libraries\maimaidx_arcade.py", line 31, in
return await writefile(arcadesjson, [.modeldump() for in self])
AttributeError: 'Arcade' object has no attribute 'model_dump'
主要报错:ERROR: 'Arcade' object has no attribute 'modeldump' 解决尝试:检查了所需的依赖且确定无误依旧报错 详细报错: [2023-09-27 08:21:00,479 maimaiDX排卡] ERROR: <class 'AttributeError'> occured when handling message 275063169. [2023-09-27 08:21:00,479 maimaiDX排卡] ERROR: 'Arcade' object has no attribute 'model_dump' Traceback (most recent call last): File "C:\Users\Administrator\HoshinoBot\hoshino\msghandler.py", line 28, in handle_message await sf.func(bot, event) File "C:\Users\Administrator\HoshinoBot\hoshino\modules\maimai\maimaiarcade.py", line 89, in msg = await modify(arcadeName=args[0], aliasName=args[1]) File "C:\Users\Administrator\HoshinoBot\hoshino\modules\maimai\libraries\maimaidx_arcade.py", line 231, in modify await arcade.total.save_arcade() File "C:\Users\Administrator\HoshinoBot\hoshino\modules\maimai\libraries\maimaidx_arcade.py", line 31, in save_arcade return await writefile(arcadesjson, [.modeldump() for in self]) File "C:\Users\Administrator\HoshinoBot\hoshino\modules\maimai\libraries\maimaidx_arcade.py", line 31, in
return await writefile(arcadesjson, [.modeldump() for in self])
AttributeError: 'Arcade' object has no attribute 'model_dump'