Skip to content

Commit

Permalink
raise OSError on post result graph error
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Jul 13, 2024
1 parent 2288900 commit c23aaa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmem_plugin_pyshacl/plugin_pyshacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ def post_graph(self, validation_graph: Graph) -> None:
content_type="application/n-triples",
)
if res.status_code != 204: # noqa: PLR2004
self.log.error(
f"Error posting SHACL validation graph: status code {res.status_code}"
raise OSError(
f"Error posting SHACL validation graph (status code {res.status_code})."
)

def check_object( # noqa: C901 PLR0912 PLR0913
Expand Down

0 comments on commit c23aaa9

Please sign in to comment.