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

Docs on exception raised by Structurednode.nodes.get is incorrect #301

Closed
mjmare opened this issue Feb 21, 2018 · 1 comment
Closed

Docs on exception raised by Structurednode.nodes.get is incorrect #301

mjmare opened this issue Feb 21, 2018 · 1 comment
Labels
documentation Issues requiring modifications to the documentation

Comments

@mjmare
Copy link

mjmare commented Feb 21, 2018

Page http://neomodel.readthedocs.io/en/latest/getting_started.html mentions that:

# raises Person.DoesNotExist if no match
jim = Person.nodes.get(name='Jim')

So a class specific exception should be raised. Actually it does not. It raises: neomodel.core.DoesNotExist

institute = Institute.nodes.get(uuid=uuid)
  File "/Users/mjm/Dropbox/Devel/ACHN/Sociale_kaart_neomodel/venv3/lib/python3.6/site-packages/neomodel/match.py", line 511, in get
    raise self.source_class.DoesNotExist(repr(kwargs))
neomodel.core.DoesNotExist: {'uuid': '776dfd0d89dc44dca6x65160472ce6f0'}
@aanastasiou aanastasiou added the documentation Issues requiring modifications to the documentation label Mar 7, 2019
@aanastasiou
Copy link
Collaborator

@mjmare Thank you, this has been addressed and will appear corrected in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues requiring modifications to the documentation
Projects
None yet
Development

No branches or pull requests

2 participants