Skip to content

Commit

Permalink
Merge pull request #2 from opendata-swiss/feat/catch-parser-errors
Browse files Browse the repository at this point in the history
feat: Catch ParserError when parsing RDF
  • Loading branch information
bellisk authored Oct 1, 2024
2 parents 0c26bed + eac07eb commit 7d5306c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckanext/dcat/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def parse(self, data, _format=None):
# exceptions are not cached, add them here.
# PluginException indicates that an unknown format was passed.
except (SyntaxError, xml.sax.SAXParseException,
rdflib.exceptions.ParserError,
rdflib.plugin.PluginException, TypeError) as e:

raise RDFParserException(e)
Expand Down

0 comments on commit 7d5306c

Please sign in to comment.