Skip to content

Commit

Permalink
Fix remote cache regression
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jul 3, 2024
1 parent 5b312a0 commit f893258
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ogc/bblocks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ def ontology_graph(self) -> Graph | None:
if 'ontology_graph' not in self._lazy_properties:
if not self.ontology.exists:
return None
self._lazy_properties['ontology_graph'] = Graph().parse(self.ontology.value, self.remote_cache_dir)
contents = load_file(self.ontology.value, self.remote_cache_dir)
self._lazy_properties['ontology_graph'] = Graph().parse(data=contents)
return self._lazy_properties['ontology_graph']

@property
Expand Down

0 comments on commit f893258

Please sign in to comment.