diff --git a/.gitignore b/.gitignore index 6da56d79..0209f88b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ dist/ env/ feedparser.egg-info/ .idea/ +.venv/ fpdocs/ venv/ build/ diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index ca6e9f28..e29d89e7 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -24,3 +24,4 @@ bug report! * `Bernd Schlapsi `_ * `Aaron Swartz `_ * `Jakub Wilk `_ +* `Nestor Rodriguez `_ diff --git a/NEWS b/NEWS index e02c642a..1339cf07 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,8 @@ coming in the next release: +6.0.9 - 19 May 2022 + * Fix a crash that can occur with GeoRSS feeds that lack a ```` tag. (#305) + 6.0.8 - 22 June 2021 * Fix the name and link to the chardet module in the documentation. (#280) diff --git a/feedparser/__init__.py b/feedparser/__init__.py index 68c2a424..2e73bfa7 100644 --- a/feedparser/__init__.py +++ b/feedparser/__init__.py @@ -32,7 +32,7 @@ __author__ = 'Kurt McKee ' __license__ = 'BSD 2-clause' -__version__ = '6.0.8' +__version__ = '6.0.9' # HTTP "User-Agent" header to send to servers when downloading feeds. # If you are embedding feedparser in a larger application, you should diff --git a/feedparser/namespaces/georss.py b/feedparser/namespaces/georss.py index 76c9c63e..62605f01 100644 --- a/feedparser/namespaces/georss.py +++ b/feedparser/namespaces/georss.py @@ -91,6 +91,8 @@ def _parse_srs_attrs(self, attrs_d): except ValueError: srs_dimension = 2 context = self._get_context() + if 'where' not in context: + context['where'] = {} context['where']['srsName'] = srs_name context['where']['srsDimension'] = srs_dimension diff --git a/tests/illformed/geo/gml_point.xml b/tests/illformed/geo/gml_point.xml new file mode 100644 index 00000000..0df1b4fc --- /dev/null +++ b/tests/illformed/geo/gml_point.xml @@ -0,0 +1,14 @@ + + + + + 36.9382 31.1732 + + +