|
发表于 2024-3-22 17:40:10
|
显示全部楼层
来自 中国
root@armbian:/www/wwwroot/DIYP/epg# python3 main.py
Traceback (most recent call last):
File "/www/wwwroot/DIYP/epg/main.py", line 20, in <module>
start_crawl()
File "/www/wwwroot/DIYP/epg/crawl/crawl.py", line 47, in main
log('%s\t第%s天 共有:%s 个频道节目表需要获取' % (dt.strftime('%Y-%m-%d'), d + 1, channel_no))
File "/www/wwwroot/DIYP/epg/utils/aboutdb.py", line 14, in log
dbinfo.save()
File "/www/wwwroot/DIYP/epg/web/models.py", line 241, in save
super().save(self, *args, **kwargs)
File "/usr/local/lib/python3.11/dist-packages/django/db/models/base.py", line 822, in save
self.save_base(
File "/usr/local/lib/python3.11/dist-packages/django/db/models/base.py", line 905, in save_base
force_insert = self._validate_force_insert(force_insert)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/django/db/models/base.py", line 850, in _validate_force_insert
raise TypeError("force_insert must be a bool or tuple.")
TypeError: force_insert must be a bool or tuple.
运行报上面的错需要怎样解决呢,谢谢大神 |
|