Closed mirekdlugosz closed 2 years ago
Merging #282 (f9a3f94) into master (1d60303) will increase coverage by
0.04%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #282 +/- ##
==========================================
+ Coverage 95.17% 95.22% +0.04%
==========================================
Files 75 75
Lines 10311 10394 +83
Branches 1475 1486 +11
==========================================
+ Hits 9814 9898 +84
+ Misses 410 409 -1
Partials 87 87
Impacted Files | Coverage Δ | |
---|---|---|
src/reader/_parser.py | 100.00% <100.00%> (ø) |
|
tests/test_parser.py | 99.43% <100.00%> (+<0.01%) |
:arrow_up: |
tests/test_plugins_twitter.py | 98.76% <0.00%> (-0.68%) |
:arrow_down: |
src/reader/_plugins/twitter.py | 85.55% <0.00%> (+1.22%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 1d60303...f9a3f94. Read the comment docs.
Thank you for opening the issue and submitting a fix, appreciate it!
@mirekdlugosz: reader 2.13 is now available on PyPI, including this PR.
Thank you!
This fixes #281.
ParseError
in_feedparser_entry
is caught and re-emitted as warning. This way we salvage as much as we can from feeds that contain valid and invalid entries._process_feedparser_dict
re-raisesParseError
with slightly different message if all entries are invalid. This is to maintain interface compatibility with JSON Feed parser.Reproducer:
Download planetpython-buggy.xml.txt and run:
On master, this will raise exception; with this patch, it will emit warning
UserWarning: file:planetpython-buggy.xml.txt: entry with no id or link fallback
, but otherwise will work.