Skip to content

Goose.extract doesn't throw an error for 404 in strict mode #158

@jnafzig

Description

@jnafzig
>>> from goose3 import Goose
>>> from goose3.configuration import Configuration
>>> config = Configuration()
>>> config.strict
True
>>> g = Goose(config)                                                                                   
>>> g.extract('https://google.com/asdfasdf')
<goose3.article.Article object at 0x7fcd32cf4a60>

In strict mode the goose docs say a network error will be raised here and instead an article is returned

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