The ONNX image solver ran but could not produce a confident answer, or the downloaded image was corrupt and decoding failed.
captcha_solver/best.onnx returned a low-confidence result, or the downloaded captcha bytes were truncated so Pillow failed to decode before the solver ran.
Solve the captcha manually in Discord that one time; the bot resumes afterwards. If it fails repeatedly, confirm captcha_solver/best.onnx (~12MB) is present and not corrupted. Recent builds validate image bytes and call handle.load() upfront, which eliminates most silent crashes.
handle = Image.open(source)
return np.asarray(handle.convert('RGB'))
handle = Image.open(source)
handle.load()
return np.asarray(handle.convert('RGB'))