Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDFWriter breaks on unknown output format #215

Closed
mpsonntag opened this issue Jan 24, 2018 · 1 comment · Fixed by #322
Closed

RDFWriter breaks on unknown output format #215

mpsonntag opened this issue Jan 24, 2018 · 1 comment · Fixed by #322
Assignees
Labels

Comments

@mpsonntag
Copy link
Contributor

The RDFWriter breaks on an unsupported RDF format with an obscure error message. Provide a more userfriendly error message.

@rickskyy
Copy link
Collaborator

Are you pointing out about this kind of traceback?

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/rdflib/plugin.py", line 100, in get
    p = _plugins[(name, kind)]
KeyError: ('wrong_format', <class 'rdflib.serializer.Serializer'>)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  .......
  File "/usr/local/lib/python3.5/dist-packages/rdflib/graph.py", line 940, in serialize
    serializer = plugin.get(format, Serializer)(self)
  File "/usr/local/lib/python3.5/dist-packages/rdflib/plugin.py", line 103, in get
    "No plugin registered for (%s, %s)" % (name, kind))
rdflib.plugin.PluginException: No plugin registered for (wrong_format, <class 'rdflib.serializer.Serializer'>)

@mpsonntag mpsonntag added the RDF label Apr 5, 2018
@fschrader1992 fschrader1992 self-assigned this Jul 30, 2019
fschrader1992 added a commit to fschrader1992/python-odml that referenced this issue Aug 4, 2019
Catch unsupported RDF Formats and Raise ValueError.

Related to issue G-Node#215.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants