设置邮件发送者的smtp信息提交后一直显示设置中……后刷新页面查看面板日志如下:
[2020-05-17 11:49:54,538] ERROR in app: Exception on /config [POST]Traceback (most recent call last):
File "class/flask_sockets.py", line 30, in __call__
handler, values = adapter.match()
File "/usr/local/lib/python3.8/site-packages/werkzeug/routing.py", line 1945, in match
raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/www/server/panel/BTPanel/__init__.py", line 696, in config
return publicObject(config.config(),defs,None,pdata)
File "/www/server/panel/BTPanel/__init__.py", line 1166, in publicObject
result = p.run(toObject,defs,get)
File "/www/server/panel/BTPanel/__init__.py", line 1341, in run
result = public.GetJson(eval(fun)),json_header
File "", line 1, in
File "class/config.py", line 75, in user_mail_send
self.mail.qq_stmp_insert(get.email.strip(), get.stmp_pwd.strip(), get.hosts.strip(),get.port.strip())
AttributeError: 'config' object has no attribute 'mail'
|
|