添加api接口报错9999的文件以及行号
This commit is contained in:
parent
250d313e4e
commit
d3f8288911
@ -100,7 +100,8 @@ def init():
|
|||||||
return ReJson(0, rdata)
|
return ReJson(0, rdata)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return ReJson(9999, msg=str(e))
|
rdata = f"{e.__traceback__.tb_lineno}____{e.__traceback__.tb_frame.f_globals['__file__']}____{e}"
|
||||||
|
return ReJson(9999, body=rdata)
|
||||||
|
|
||||||
|
|
||||||
@api.route('/api/version', methods=["GET", 'POST'])
|
@api.route('/api/version', methods=["GET", 'POST'])
|
||||||
|
Loading…
Reference in New Issue
Block a user