diff --git a/sql/engines/mongo.py b/sql/engines/mongo.py index 47ac92499f..4b76db7cc9 100644 --- a/sql/engines/mongo.py +++ b/sql/engines/mongo.py @@ -354,7 +354,7 @@ def exec_cmd(self, sql, db_name=None, slave_ok=""): msg = "\n".join(_re_msg) # 替换掉当语句长度超过4000使用load命令执行js 后多余返回的true - msg = msg.replace('true\n','') + msg = msg.replace('true\n',"") except Exception as e: logger.warning(f"mongo语句执行报错,语句:{sql},{e}错误信息{traceback.format_exc()}") finally: