Open snarfed opened 3 months ago
Thanks for the kind words! This is definitely unexpected, and I'll take a look at this. For now, it may be necessary to catch AssertionError
. :disappointed:
We were able to trigger a similar assertion.
"unknown status keyword 'n' in marked section"
We were able to narrow down the cause of the problem to the following segment in our input.
<description >XC#<![n%</description>
We think it is the character combination <![
or as well as <![
or **<![**
, which effectively renders to <![
.
The problem seems to be the parsing of marked sections, from the error trace we could see that 'parse_marked_section' is mistakenly called, although it is not a marked section.
Hi! First off, huge thanks for maintaining feedparser. It's legendary! We're all lucky to have it.
I hit a new (to me)
AssertionError
today when parsing the RSS at https://snrk.de/feed/ . Here's the relevant RSS snippet:...and here's the assert:
Is this expected? Should I catch
AssertionError
everywhere I use feedparser? Any other thoughts?feedparser 6.0.11, Python 3.11.9. Maybe related to #378...but not exactly the same. Thanks in advance!