dpm12345/nonebot_plugin_tts_gal

0.3.10版本出现int()报错

Closed this issue · 0 comments

由于我的个人疏忽,当单人模型按照以前的填写方式填写时,会发生以下报错

function.py", line 53, in check_character
index = None if len(model) == 1 else int(model[1])
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

这里的解决方案为将该行代码改为index=model[1]