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

fix: propagate exceptions from SPARQL TSV result parser #1809

Merged

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Apr 14, 2022

Summary of changes

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:

Checklist

  • Checked that there aren't other open pull requests for
    the same change.
  • Added tests for any changes that have a runtime impact.
  • Checked that all tests and type checking passes.
  • Considered granting push permissions to the PR branch,
    so maintainers can fix minor issues and keep your PR up to date.

@aucampia aucampia force-pushed the iwana-20220414T0947-test_result_parser branch from b127e07 to 0dbb387 Compare April 14, 2022 08:03
@aucampia aucampia marked this pull request as ready for review April 14, 2022 08:04
@aucampia aucampia force-pushed the iwana-20220414T0947-test_result_parser branch from 0dbb387 to d573727 Compare April 14, 2022 08:45
@aucampia aucampia linked an issue Apr 14, 2022 that may be closed by this pull request
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 force-pushed the iwana-20220414T0947-test_result_parser branch from d573727 to 34aa7f4 Compare April 14, 2022 09:14
@aucampia aucampia linked an issue Apr 14, 2022 that may be closed by this pull request
@nicholascar nicholascar merged commit 4f4c0fe into RDFLib:master Apr 15, 2022
@aucampia aucampia deleted the iwana-20220414T0947-test_result_parser branch May 7, 2022 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TSVResultParser.parse eats exceptions
2 participants