You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: List Index out out range with empty parts [] (#138)
* Fix: Index out out range with empty parts []
while question was blocked by api, the parts is an empty list [],
so the exp:
if len(parts) > 1 or "text" not in parts[0]:
will raise list index out of range, but not ValueError
* simplify parts length check.
* Update error message.
---------
Co-authored-by: Mark Daoust <[email protected]>
0 commit comments