Skip to content

遇到和之前几位一样的MONGODB后缀问题 #86

@wwfgxnyi

Description

@wwfgxnyi

Traceback (most recent call last):
File "scheduled_task.py", line 18, in
from owllook.spiders import QidianRankingSpider, ZHRankingSpider
File "/root/owllook/owllook/spiders/init.py", line 1, in
from .qidian_ranking import QidianRankingSpider
File "/root/owllook/owllook/spiders/qidian_ranking.py", line 8, in
from owllook.database.mongodb import MotorBaseOld
File "/root/owllook/owllook/database/mongodb/init.py", line 1, in
from .motorbase import MotorBase, MotorBaseOld, PyMongoDb
File "/root/owllook/owllook/database/mongodb/motorbase.py", line 11, in
@singleton
File "/root/owllook/owllook/database/mongodb/motorbase.py", line 19, in MotorBase
MONGODB = CONFIG.MONGODB
AttributeError: type object 'Config' has no attribute 'MONGODB'

false改了,没用

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions