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

TSVResultParser.parse eats exceptions #1477

Closed
aucampia opened this issue Nov 24, 2021 · 0 comments · Fixed by #1809
Closed

TSVResultParser.parse eats exceptions #1477

aucampia opened this issue Nov 24, 2021 · 0 comments · Fixed by #1809
Assignees
Labels
bug Something isn't working

Comments

@aucampia
Copy link
Member

This is eating exceptions which should not be eaten and should propagate:

except ParseException as err:
print(err.line)
print(" " * (err.column - 1) + "^")
print(err)

@aucampia aucampia added the bug Something isn't working label Jan 23, 2022
@aucampia aucampia self-assigned this Apr 10, 2022
aucampia added a commit to aucampia/rdflib that referenced this issue Apr 11, 2022
Converting to pytest in preperation for additional tests I will add for:
- RDFLib#1477
aucampia added a commit to aucampia/rdflib that referenced this issue Apr 11, 2022
Converting to pytest in preperation for additional tests I will add for:
- RDFLib#1477
aucampia added a commit to aucampia/rdflib that referenced this issue Apr 14, 2022
This patch changes the `TSVResultParser` to not eat exceptions, as this
results in silent failures that are hard to debug, and in general all
functions should either do what they say they will or create an error
indication to the caller, which in python is done with exceptions.

Fixes:
- RDFLib#1477
@aucampia aucampia linked a pull request Apr 14, 2022 that will close this issue
4 tasks
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
Development

Successfully merging a pull request may close this issue.

1 participant