- Traceback (most recent call last):
- File "class/panelPlugin.py", line 1714, in a
- return eval(execStr)
- File "", line 1, in
- File "plugin/mail_sys/mail_sys_main.py", line 819, in add_domain
- self.M('domain').add('domain,a_record,created', (domain, a_record, cur_time))
- File "class/db.py", line 184, in add
- self.__DB_CONN.text_factory = str
- AttributeError: 'NoneType' object has no attribute 'text_factory'
复制代码 错误如上,谢谢环境参数如下:
CentOS 7.7.1908(Py2.7.5)、
- curl 'pv.sohu.com/cityjson?ie=utf-8'
- var returnCitySN = {"cip": "45.77.208.13", "cid": "CN", "cname": "CHINA"};
复制代码- pip install dnspython
- Requirement already satisfied: dnspython in /usr/lib/python2.7/site-packages (1.16.0)
复制代码
- ls /www/vmail/postfixadmin.db
- ls: cannot access /www/vmail/postfixadmin.db: No such file or directory
复制代码
|
|