mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
fix(triplet-store): preserve missing backend dependency errors
This commit is contained in:
@@ -156,9 +156,11 @@ class TripletStore:
|
||||
|
||||
self.logger.info(f"Initialized {self.backend_type} backend")
|
||||
|
||||
except ImportError:
|
||||
raise
|
||||
except Exception as e:
|
||||
self.logger.error(f"Failed to initialize {self.backend_type} backend: {e}")
|
||||
raise ProcessingError(f"Failed to initialize backend: {e}")
|
||||
raise ProcessingError(f"Failed to initialize backend: {e}") from e
|
||||
|
||||
def store(
|
||||
self,
|
||||
|
||||
@@ -158,4 +158,4 @@ def test_missing_optional_dependency_has_install_hint():
|
||||
side_effect=import_without_oxigraph,
|
||||
):
|
||||
with pytest.raises(ImportError, match="tripletstore-oxigraph"):
|
||||
OxigraphStore()
|
||||
_store()
|
||||
|
||||
Reference in New Issue
Block a user