From 5c303bd9711f02a2afbd0099a72c64f204e0b92b Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 12 Mar 2024 10:33:52 +0000 Subject: [PATCH] fix Path st_size --- cmem_plugin_pyshacl/plugin_pyshacl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmem_plugin_pyshacl/plugin_pyshacl.py b/cmem_plugin_pyshacl/plugin_pyshacl.py index 4b40cb5..435754f 100644 --- a/cmem_plugin_pyshacl/plugin_pyshacl.py +++ b/cmem_plugin_pyshacl/plugin_pyshacl.py @@ -438,7 +438,7 @@ def post_graph(self, validation_graph: Graph) -> None: validation_graph.serialize(temp_file, format="nt", encoding="utf-8") self.log.info( f"Created temporary file {temp_file} with size " - f"{Path.stat(temp_file).st_size()} bytes" + f"{temp_file.stat().st_size} bytes" ) res = post_streamed( self.validation_graph_uri,