mirror of
https://github.com/Xtao-Labs/iShotaBot.git
synced 2024-11-16 04:35:55 +00:00
fix: IndexError
This commit is contained in:
parent
a8b9d4fa78
commit
0b9930e4f3
@ -60,6 +60,8 @@ def cut_text(old_str, cut):
|
||||
i = 0
|
||||
non_wrap_str = []
|
||||
for p in str_list:
|
||||
if not p:
|
||||
continue
|
||||
if p[-1] == "\n":
|
||||
p = p[:-1]
|
||||
non_wrap_str.append(p)
|
||||
|
Loading…
Reference in New Issue
Block a user