添加api接口报错9999的文件以及行号
This commit is contained in:
1 parent
250d313e4e
commit
d3f8288911
1 file changed
+2
-1
+2
-1
@@ -100,7 +100,8 @@ def init():
|
||||
return ReJson(0, rdata)
|
||||
|
||||
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'])
|
||||
|
||||
Reference in new issue
Block a user