查找语法错误之前先清除换行符

This commit is contained in:
qingxu fu
2023-03-30 12:52:28 +08:00
parent 4d02ea9863
commit 44155bcc24
3 changed files with 12 additions and 3 deletions

View File

@ -230,3 +230,9 @@ def get_conf(*args):
assert False, "正确的API_KEY密钥是51位请在config文件中修改API密钥, 添加海外代理之后再运行。" + \
"如果您刚更新过代码请确保旧版config_private文件中没有遗留任何新增键值"
return res
def clear_line_break(txt):
txt = txt.replace('\n', ' ')
txt = txt.replace(' ', ' ')
txt = txt.replace(' ', ' ')
return txt