

过程描述:以往一直正常的程序,今天需要编辑更改63行内容。 双击运行框都会出现如图62行的编辑对话框,但是在双击63行代码打开编辑框的时候突然报错了【系统环境异常】,程序只能退出。重新登陆进入程序编辑此段63行代码都是报错闪退。无论是复制应用,还是复制指令进来都编辑报错,应用没法使用了。 尝试执行运行应用,下面是运行提示的错误:
Traceback (most recent call last):
File "D:\影刀\ShadowBot\shadowbot-5.14.30\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "D:\影刀\ShadowBot\shadowbot-5.14.30\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\影刀\ShadowBot\shadowbot-5.14.30\python\lib\site-packages\xbot_interpreter.py", line 97, in <module>
main()
File "D:\影刀\ShadowBot\shadowbot-5.14.30\python\lib\site-packages\xbot_interpreter.py", line 59, in main
mod.main(args)
File "C:\Users\Nex\AppData\Local\ShadowBot\users\5c2dbd0f-b8c6-4809-abc6-c6c32e91f86d\apps\f46c606e-5555-45de-a56c-586f52992537\xbot_robot\main.py", line 92, in main
recordset = xbot_visual.database.exec(connect_way="database", database="", conn_str=None, sql="truncate table [dbo].[1512 D竞店_关键指标_类目_无线端]", timeout_seconds="30", result_toString=True, _block=("main", 63, "执行SQL语句"))
File "<string>", line 89, in wrapper
File "<string>", line 84, in wrapper
File "<string>", line 30, in exec
AttributeError: 'str' object has no attribute 'exec'