Dimlitter/jd_AutoComment

服务评价报错

Closed this issue · 2 comments

022-02-22 20:43:27,886 �[1;32mINFO�[0m 当前共有20个需要服务评价。
INFO:main:当前共有20个需要服务评价。
2022-02-22 20:43:27,886 �[1;32mINFO�[0m 开始第1,冠粮谷 东北黄小米(小米粥 五谷杂粮粗粮 新小黄米 月子粥 新米 粥米伴侣) 真空锁鲜包装 黄小米1KG (2斤装)
INFO:main: 开始第1,冠粮谷 东北黄小米(小米粥 五谷杂粮粗粮 新小黄米 月子粥 新米 粥米伴侣) 真空锁鲜包装 黄小米1KG (2斤装)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:43:43,024 �[1;32mINFO�[0m 开始第2,【京喜牧场】21年新季稻 佰禾田2斤 圆粒香大米 东北庆安大米 优质稻作区 500g2斤5斤10斤装 佰禾田圆粒香米2斤
INFO:main: 开始第2,【京喜牧场】21年新季稻 佰禾田2斤 圆粒香大米 东北庆安大米 优质稻作区 500g2斤5斤10斤装 佰禾田圆粒香米
2斤
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:43:58,200 �[1;32mINFO�[0m 开始第3,【官方授权】李宁(LI-NING)无绳跳绳女生健身两用计数成人跳绳学生用专业绳健身器材 灰黑-长绳+无绳款/双键四种模式 【双键四模式/2.8米绳体可调节】
INFO:main: 开始第3,【官方授权】李宁(LI-NING)无绳跳绳女生健身两用计数成人跳绳学生用专业绳健身器材 灰黑-长绳+无绳款/双键四种模式 【双键四模式/2.8米绳体可调节】
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:44:13,432 �[1;32mINFO�[0m 开始第4,麻阳冰糖橙 新鲜应季 水果橙子 带箱3斤装 净重2.5斤
INFO:main: 开始第4,麻阳冰糖橙 新鲜应季 水果橙子 带箱3斤装 净重2.5斤
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:44:28,579 �[1;32mINFO�[0m 开始第5,【限时活动2盒】终身美丽24K金箔苦参除螨皂去螨虫黑头舒缓控油清痘后背洁面沐浴男女士手工硫磺皂香皂 24K金苦参除螨皂 1盒/100g(活动赠1盒)
INFO:main: 开始第5,【限时活动2盒】终身美丽24K金箔苦参除螨皂去螨虫黑头舒缓控油清痘后背洁面沐浴男女士手工硫磺皂香皂 24K金苦参除螨皂 1盒/100g(活动赠1盒)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:44:43,839 �[1;32mINFO�[0m 开始第6,正版3册 民法典2021版中华人民共和国民法典+法律常识一本全 +经济常识一本全法律读物书籍
INFO:main: 开始第6,正版3册 民法典2021版中华人民共和国民法典+法律常识一本全 +经济常识一本全法律读物书籍
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:44:59,097 �[1;32mINFO�[0m 开始第7,Dove多芬香皂柔肤乳霜香块100g深层清洁控油沐浴滋润保湿德国进口 多芬香皂100g1块
INFO:main: 开始第7,Dove多芬香皂柔肤乳霜香块100g深层清洁控油沐浴滋润保湿德国进口 多芬香皂100g
1块
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:45:14,268 �[1;32mINFO�[0m 开始第8,力士(LUX)花漾悦香护发素 小苍兰幻境香氛精华素470ml
INFO:main: 开始第8,力士(LUX)花漾悦香护发素 小苍兰幻境香氛精华素470ml
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)

测试中同样发现此问题, @LittleYe233 的日志系统还未完善,可以先使用stable版本替代

022-02-22 20:43:27,886 �[1;32mINFO�[0m 当前共有20个需要服务评价。 INFO:main:当前共有20个需要服务评价。 2022-02-22 20:43:27,886 �[1;32mINFO�[0m 开始第1,冠粮谷 东北黄小米(小米粥 五谷杂粮粗粮 新小黄米 月子粥 新米 粥米伴侣) 真空锁鲜包装 黄小米1KG (2斤装) INFO:main: 开始第1,冠粮谷 东北黄小米(小米粥 五谷杂粮粗粮 新小黄米 月子粥 新米 粥米伴侣) 真空锁鲜包装 黄小米1KG (2斤装) --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format return logging.Formatter.format(self, rcd) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) 2022-02-22 20:43:43,024 �[1;32mINFO�[0m 开始第2,【京喜牧场】21年新季稻 佰禾田2斤 圆粒香大米 东北庆安大米 优质稻作区 500g2斤5斤10斤装 佰禾田圆粒香米_2斤 INFO:main: 开始第2,【京喜牧场】21年新季稻 佰禾田2斤 圆粒香大米 东北庆安大米 优质稻作区 500g2斤5斤10斤装 佰禾田圆粒香米_2斤 --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format return logging.Formatter.format(self, rcd) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) 2022-02-22 20:43:58,200 �[1;32mINFO�[0m 开始第3,【官方授权】李宁(LI-NING)无绳跳绳女生健身两用计数成人跳绳学生用专业绳健身器材 灰黑-长绳+无绳款/双键四种模式 【双键四模式/2.8米绳体可调节】 INFO:main: 开始第3,【官方授权】李宁(LI-NING)无绳跳绳女生健身两用计数成人跳绳学生用专业绳健身器材 灰黑-长绳+无绳款/双键四种模式 【双键四模式/2.8米绳体可调节】 --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format return logging.Formatter.format(self, rcd) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) 2022-02-22 20:44:13,432 �[1;32mINFO�[0m 开始第4,麻阳冰糖橙 新鲜应季 水果橙子 带箱3斤装 净重2.5斤 INFO:main: 开始第4,麻阳冰糖橙 新鲜应季 水果橙子 带箱3斤装 净重2.5斤 --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format return logging.Formatter.format(self, rcd) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) 2022-02-22 20:44:28,579 �[1;32mINFO�[0m 开始第5,【限时活动2盒】终身美丽24K金箔苦参除螨皂去螨虫黑头舒缓控油清痘后背洁面沐浴男女士手工硫磺皂香皂 24K金苦参除螨皂 1盒/100g(活动赠1盒) INFO:main: 开始第5,【限时活动2盒】终身美丽24K金箔苦参除螨皂去螨虫黑头舒缓控油清痘后背洁面沐浴男女士手工硫磺皂香皂 24K金苦参除螨皂 1盒/100g(活动赠1盒) --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format return logging.Formatter.format(self, rcd) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) 2022-02-22 20:44:43,839 �[1;32mINFO�[0m 开始第6,正版3册 民法典2021版中华人民共和国民法典+法律常识一本全 +经济常识一本全法律读物书籍 INFO:main: 开始第6,正版3册 民法典2021版中华人民共和国民法典+法律常识一本全 +经济常识一本全法律读物书籍 --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format return logging.Formatter.format(self, rcd) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) 2022-02-22 20:44:59,097 �[1;32mINFO�[0m 开始第7,Dove多芬香皂柔肤乳霜香块100g深层清洁控油沐浴滋润保湿德国进口 多芬香皂100g_1块 INFO:main: 开始第7,Dove多芬香皂柔肤乳霜香块100g深层清洁控油沐浴滋润保湿德国进口 多芬香皂100g_1块 --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format return logging.Formatter.format(self, rcd) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) 2022-02-22 20:45:14,268 �[1;32mINFO�[0m 开始第8,力士(LUX)花漾悦香护发素 小苍兰幻境香氛精华素470ml INFO:main: 开始第8,力士(LUX)花漾悦香护发素 小苍兰幻境香氛精华素470ml --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format return logging.Formatter.format(self, rcd) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',) --- Logging error --- Traceback (most recent call last): File "D:\Python39\lib\logging__init__.py", line 1083, in emit msg = self.format(record) File "D:\Python39\lib\logging__init__.py", line 927, in format return fmt.format(record) File "D:\Python39\lib\logging__init__.py", line 663, in format record.message = record.getMessage() File "D:\Python39\lib\logging__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in main(opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main N = Service_rating(N, opts) File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating opts['logger'].info("\t\t", pj1.text) Message: '\t\t' Arguments: ('{"status":1}',)

@xiaoyouke01 @Dimlitter 应该是将旧版本代码中的 print 直接替换为 opts['logger'].info 造成的。两个函数的参数不同,造成使用后者时报错。后续提交中会修复。