• Antoine Beaupré's avatar
    warn instead of crashing on invalid dates · 2e339c79
    Antoine Beaupré authored
    We used to completely crash when a feed had invalid or missing
    dates. After reviewing the standards, it turns out this is not quite
    valid behavior: RSS 0.90 and 0.91, for example, do not have dates at
    all. Yet it seems to me a valid feed should minimally include *some*
    timestamps and the more likely explanation for a missing "parsed"
    field is that feedparser wasn't able to parse the feed properly
    
    Therefore, turn this into a warning. This will be annoying as hell for
    some users and feeds, unfortunately, but I don't think silently
    ignoring those errors will be much better, as we *do* need a
    timestamp (for example to generate valid emails) internally.
    
    We fallback to the current time, for lack of a better alternative.
    
    Closes: #7
    2e339c79
Name
Last commit
Last update
.gitlab/issue_templates Loading commit data...
completion Loading commit data...
debian Loading commit data...
doc Loading commit data...
feed2exec Loading commit data...
.coveragerc Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CHANGELOG Loading commit data...
CODE_OF_CONDUCT.rst Loading commit data...
CONTRIBUTING.rst Loading commit data...
LICENSE.rst Loading commit data...
README.rst Loading commit data...
feed2exec.ini Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...