Skip to content

A bug with CrawlSpider with multiple rules  #83

@Red-Pheonix

Description

@Red-Pheonix

When there is a crawlspider with multiple rules, if one of them has no methods attached as a callback, then it gets "TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'". It tries to make a directory based on the name, but fails to do so. Adding a check prevents this issue.

I found another issue as well. Although the fix works(as in the spider doesn't crash), the generated tests don't work. It tries to call the non existent method and gets an error TypeError: NoneType object is not callable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions