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

ontodoc: Expect is_instance_of property to be iterable #506

Closed
CasperWA opened this issue Nov 25, 2022 · 0 comments · Fixed by #532
Closed

ontodoc: Expect is_instance_of property to be iterable #506

CasperWA opened this issue Nov 25, 2022 · 0 comments · Fixed by #532
Assignees
Labels
bug Something isn't working

Comments

@CasperWA
Copy link
Collaborator

Trying to run ontodoc for the new domain-battery locally ends up with a bug in ontodoc.py where it is running through entities, checking instances in it and iterating over an item's is_instance_of property, expecting it to be iterable. However, in the local case, it is not, which raises a TypeError.
This can be remedied by introducing a try/except test, passing for TypeError.

@CasperWA CasperWA added the bug Something isn't working label Nov 25, 2022
@CasperWA CasperWA self-assigned this Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant